1998-04-24  Ulrich Drepper  <drepper@cygnus.com>

	* inet/rcmd.c (__ivaliduser): Check buf for being NULL before
	free()ing.
This commit is contained in:
Ulrich Drepper 1998-04-24 14:19:19 +00:00
parent 0777024193
commit c3f556889b
2 changed files with 7 additions and 1 deletions

View File

@ -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.

View File

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