From bd7f52919cb2be9c6789fd73ac200986b3c3da9c Mon Sep 17 00:00:00 2001 From: Christos Zoulas Date: Wed, 17 Sep 2008 20:16:21 +0000 Subject: [PATCH] avoid possible null pointer deref (coverity) --- hlfsd/homedir.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hlfsd/homedir.c b/hlfsd/homedir.c index 2a8e3a24..2063878a 100644 --- a/hlfsd/homedir.c +++ b/hlfsd/homedir.c @@ -266,7 +266,8 @@ delay(uid2home_t *found, int secs) { struct timeval tv; - dlog("delaying on child %ld for %d seconds", (long) found->child, secs); + if (found) + dlog("delaying on child %ld for %d seconds", (long) found->child, secs); tv.tv_usec = 0; -- 2.43.0