(__ivaliduser): Check buf for being NULL before free()ing.
authordrepper <drepper>
Fri, 24 Apr 1998 14:17:58 +0000 (14:17 +0000)
committerdrepper <drepper>
Fri, 24 Apr 1998 14:17:58 +0000 (14:17 +0000)
inet/rcmd.c

index a8a6bc4..d76eff8 100644 (file)
@@ -438,7 +438,8 @@ __ivaliduser(hostf, raddr, luser, ruser)
                        return 0;
                }
        }
-       free (buf);
+       if (buf != NULL)
+               free (buf);
        return -1;
 }