mirror of
https://github.com/t-crest/rtems.git
synced 2025-12-05 15:15:48 +00:00
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:
@@ -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):
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user