forked from Imagelibrary/rtems
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>
|
2011-11-30 Ralf Corsépius <ralf.corsepius@rtems.org>
|
||||||
|
|
||||||
* librpc/src/rpc/clnt_udp.c (struct cu_data):
|
* librpc/src/rpc/clnt_udp.c (struct cu_data):
|
||||||
|
|||||||
@@ -223,7 +223,7 @@ struct hostent* gethostent_r(char* buf, int len)
|
|||||||
int curlen;
|
int curlen;
|
||||||
|
|
||||||
|
|
||||||
if (hostf<0) return 0;
|
if (!hostf) return 0;
|
||||||
fseek(hostf,0,SEEK_END);
|
fseek(hostf,0,SEEK_END);
|
||||||
curlen=ftell(hostf);
|
curlen=ftell(hostf);
|
||||||
fseek(hostf,0,SEEK_SET);
|
fseek(hostf,0,SEEK_SET);
|
||||||
|
|||||||
Reference in New Issue
Block a user