aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-04-24 14:19:19 +0000
committerUlrich Drepper <drepper@redhat.com>1998-04-24 14:19:19 +0000
commitc3f556889baf6269787fa847470c46ef2a378c85 (patch)
tree42a3b3d03320d3b9d6b9bf352bab23b03d6674aa
parent0777024193516ccc4dbee53f6a2fb281fee5fb10 (diff)
downloadglibc-c3f556889baf6269787fa847470c46ef2a378c85.zip
glibc-c3f556889baf6269787fa847470c46ef2a378c85.tar.gz
glibc-c3f556889baf6269787fa847470c46ef2a378c85.tar.bz2
Update.
1998-04-24 Ulrich Drepper <drepper@cygnus.com> * inet/rcmd.c (__ivaliduser): Check buf for being NULL before free()ing.
-rw-r--r--ChangeLog5
-rw-r--r--inet/rcmd.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index af4ccd5..6eb64da 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+1998-04-24 Ulrich Drepper <drepper@cygnus.com>
+
+ * inet/rcmd.c (__ivaliduser): Check buf for being NULL before
+ free()ing.
+
1998-04-24 13:56 Ulrich Drepper <drepper@cygnus.com>
* sysdeps/generic/bits/socket.h: Add #defines for enum values.
diff --git a/inet/rcmd.c b/inet/rcmd.c
index a8a6bc4..d76eff8 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;
}