summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2004-03-08 10:41:05 +0000
committerSimo Sorce <idra@samba.org>2004-03-08 10:41:05 +0000
commit22115af66114cfc3641576acfa998e12bab74e33 (patch)
tree3d728ccfff4bb45d45309efb4ba021b331c83034 /source3
parent9c15b5b0ec08bd13a7f3e888482165207926e7f9 (diff)
downloadsamba-22115af66114cfc3641576acfa998e12bab74e33.tar.gz
samba-22115af66114cfc3641576acfa998e12bab74e33.tar.bz2
samba-22115af66114cfc3641576acfa998e12bab74e33.zip
Do some checks about data passed to this function
(This used to be commit 77142a1ca6853fcae3b806830d077f6f84bebd6d)
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/privileges.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/lib/privileges.c b/source3/lib/privileges.c
index a3b85372c7..cd888b6513 100644
--- a/source3/lib/privileges.c
+++ b/source3/lib/privileges.c
@@ -170,6 +170,9 @@ void reset_privilege(PRIVILEGE_SET *priv_set)
void destroy_privilege(PRIVILEGE_SET **priv_set)
{
+ if (priv_set == NULL || *priv_set == NULL)
+ return;
+
reset_privilege(*priv_set);
if (!((*priv_set)->ext_ctx))
/* mem_ctx is local, destroy it */