From c3f556889baf6269787fa847470c46ef2a378c85 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 24 Apr 1998 14:19:19 +0000 Subject: Update. 1998-04-24 Ulrich Drepper * inet/rcmd.c (__ivaliduser): Check buf for being NULL before free()ing. --- inet/rcmd.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'inet/rcmd.c') diff --git a/inet/rcmd.c b/inet/rcmd.c index a8a6bc451b..d76eff84e9 100644 --- a/inet/rcmd.c +++ b/inet/rcmd.c @@ -438,7 +438,8 @@ __ivaliduser(hostf, raddr, luser, ruser) return 0; } } - free (buf); + if (buf != NULL) + free (buf); return -1; } -- cgit v1.2.3