From 35305cf2f5846e9da61d67c750e9c74506a8204a Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Wed, 4 Aug 2010 09:58:34 -0400 Subject: [PATCH] Make sure we don't try to delref NULL. --HG-- branch : 1.7 --- check.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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; + } } /* -- 2.50.1