mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-10-26 14:38:12 +08: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 parent
2fc9706a56
commit
d1cbfaa89e
2 files changed
+7
-1
No files matched your search
@@ -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