2011-12-07 Ralf Corsépius <ralf.corsepius@rtems.org>

PR 1983/networking
	* libnetworking/libc/gethostbyht.c (gethostent_r):
	Abort if (!hostf).
This commit is contained in:
Ralf Corsepius
2011-12-07 06:51:43 +00:00
parent 2fc9706a56
commit d1cbfaa89e
2 changed files with 7 additions and 1 deletions

View File

@@ -1,3 +1,9 @@
2011-12-07 Ralf Corsépius <ralf.corsepius@rtems.org>
PR 1983/networking
* libnetworking/libc/gethostbyht.c (gethostent_r):
Abort if (!hostf).
2011-11-30 Ralf Corsépius <ralf.corsepius@rtems.org>
* librpc/src/rpc/clnt_udp.c (struct cu_data):

View File

@@ -223,7 +223,7 @@ struct hostent* gethostent_r(char* buf, int len)
int curlen;
if (hostf<0) return 0;
if (!hostf) return 0;
fseek(hostf,0,SEEK_END);
curlen=ftell(hostf);
fseek(hostf,0,SEEK_SET);