From 22115af66114cfc3641576acfa998e12bab74e33 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Mon, 8 Mar 2004 10:41:05 +0000 Subject: Do some checks about data passed to this function (This used to be commit 77142a1ca6853fcae3b806830d077f6f84bebd6d) --- source3/lib/privileges.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source3/lib') 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 */ -- cgit