diff options
author | Wilco Baan Hofman <wilco@baanhofman.nl> | 2009-10-11 00:12:28 +0200 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2009-11-15 19:26:50 +0100 |
commit | c319b965a1a8ab2fe54d7def06f4a41fb193dde3 (patch) | |
tree | 758a5450a3e5cb643961a92bf990b32f6bea49d6 /libgpo | |
parent | 5a7d48f82b06738924d6afedd53d79b0202d150a (diff) | |
download | samba-c319b965a1a8ab2fe54d7def06f4a41fb193dde3.tar.gz samba-c319b965a1a8ab2fe54d7def06f4a41fb193dde3.tar.xz samba-c319b965a1a8ab2fe54d7def06f4a41fb193dde3.zip |
Fix NULL pointer dereference in libgpo when listing Local Policy which has no security descriptor.
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Diffstat (limited to 'libgpo')
-rw-r--r-- | libgpo/gpo_util.c | 7 |
1 files changed, 4 insertions, 3 deletions
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); + } } /**************************************************************** |