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. --- ChangeLog | 5 +++++ inet/rcmd.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index af4ccd5ad9..6eb64da366 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +1998-04-24 Ulrich Drepper + + * inet/rcmd.c (__ivaliduser): Check buf for being NULL before + free()ing. + 1998-04-24 13:56 Ulrich Drepper * sysdeps/generic/bits/socket.h: Add #defines for enum values. 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