diff options
-rw-r--r-- | source3/lib/privileges.c | 3 |
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 */ |