From: Todd C. Miller Date: Mon, 13 Sep 2010 15:08:27 +0000 (-0400) Subject: Don't try to delref a NULL group. X-Git-Tag: SUDO_1_7_5~160 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=16cd4c82554804083934c1dce247c1033c41992d;p=sudo Don't try to delref a NULL group. --HG-- branch : 1.7 --- diff --git a/pwutil.c b/pwutil.c index b9929ee1c..d09e684a1 100644 --- a/pwutil.c +++ b/pwutil.c @@ -733,6 +733,7 @@ user_in_group(pw, group) #endif /* HAVE_MBR_CHECK_MEMBERSHIP */ done: - gr_delref(grp); + if (grp != NULL) + gr_delref(grp); return(retval); }