From aae25ef1f6a97cf148d8e66a034a14e296b5dc05 Mon Sep 17 00:00:00 2001 From: Ralf Habacker Date: Tue, 14 Apr 2015 23:48:23 +0200 Subject: [PATCH 2/2] CID 54744: Dereference after null check (FORWARD_NULL). Passing null pointer dir to _dbus_directory_get_next_file, which dereferences it. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=90021 --- bus/config-parser.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bus/config-parser.c b/bus/config-parser.c index 1540fe4..3f59730 100644 --- a/bus/config-parser.c +++ b/bus/config-parser.c @@ -2271,6 +2271,8 @@ include_dir (BusConfigParser *parser, dbus_error_free (error); goto success; } + else + goto failed; } dbus_error_init (&tmp_error); -- 1.8.4.5