From c319b965a1a8ab2fe54d7def06f4a41fb193dde3 Mon Sep 17 00:00:00 2001 From: Wilco Baan Hofman Date: Sun, 11 Oct 2009 00:12:28 +0200 Subject: Fix NULL pointer dereference in libgpo when listing Local Policy which has no security descriptor. Signed-off-by: Jelmer Vernooij --- libgpo/gpo_util.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'libgpo') diff --git a/libgpo/gpo_util.c b/libgpo/gpo_util.c index 7a23b5cbd3..fdf4c6d1af 100644 --- a/libgpo/gpo_util.c +++ b/libgpo/gpo_util.c @@ -321,10 +321,11 @@ void dump_gpo(ADS_STRUCT *ads, } dump_gp_ext(gp_ext, lvl); } + if (gpo->security_descriptor) { + DEBUGADD(lvl,("security descriptor:\n")); - DEBUGADD(lvl,("security descriptor:\n")); - - NDR_PRINT_DEBUG(security_descriptor, gpo->security_descriptor); + NDR_PRINT_DEBUG(security_descriptor, gpo->security_descriptor); + } } /**************************************************************** -- cgit