From 77142a1ca6853fcae3b806830d077f6f84bebd6d Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Mon, 8 Mar 2004 10:41:05 +0000 Subject: [PATCH] Do some checks about data passed to this function --- source/lib/privileges.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/lib/privileges.c b/source/lib/privileges.c index a3b85372c7f..cd888b65133 100644 --- a/source/lib/privileges.c +++ b/source/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 */ -- 2.11.4.GIT