From: Todd C. Miller Date: Wed, 4 Aug 2010 13:58:34 +0000 (-0400) Subject: Make sure we don't try to delref NULL. X-Git-Tag: SUDO_1_7_5~204 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=35305cf2f5846e9da61d67c750e9c74506a8204a;p=sudo Make sure we don't try to delref NULL. --HG-- branch : 1.7 --- diff --git a/check.c b/check.c index 42b1eacd0..942da76dd 100644 --- a/check.c +++ b/check.c @@ -163,8 +163,10 @@ check_user(validated, mode) update_timestamp(timestampdir, timestampfile); efree(timestampdir); efree(timestampfile); - pw_delref(auth_pw); - auth_pw = NULL; + if (auth_pw != NULL) { + pw_delref(auth_pw); + auth_pw = NULL; + } } /*