From: Christos Zoulas Date: Wed, 17 Sep 2008 20:16:21 +0000 (+0000) Subject: avoid possible null pointer deref (coverity) X-Git-Url: https://git.fsl.cs.stonybrook.edu/?a=commitdiff_plain;h=bd7f52919cb2be9c6789fd73ac200986b3c3da9c;p=am-utils-6.0.git avoid possible null pointer deref (coverity) --- diff --git a/hlfsd/homedir.c b/hlfsd/homedir.c index 2a8e3a2..2063878 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;