diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2011-12-07 06:49:32 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2011-12-07 06:49:32 +0000 |
commit | a1399ba8cd69061090979b2a9bdc5b02c2814d77 (patch) | |
tree | 6240443577dea4e21f92c2b396a4945033674339 | |
parent | 2011-12-07 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-a1399ba8cd69061090979b2a9bdc5b02c2814d77.tar.bz2 |
2011-12-07 Ralf Corsépius <ralf.corsepius@rtems.org>
PR 1983/networking
* libnetworking/libc/gethostbyht.c (gethostent_r):
Abort if (!hostf).
-rw-r--r-- | cpukit/ChangeLog | 6 | ||||
-rw-r--r-- | cpukit/libnetworking/libc/gethostbyht.c | 2 |
2 files changed, 7 insertions, 1 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index 52d6912e83..91faf5363c 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,5 +1,11 @@ 2011-12-07 Ralf Corsépius <ralf.corsepius@rtems.org> + PR 1983/networking + * libnetworking/libc/gethostbyht.c (gethostent_r): + Abort if (!hostf). + +2011-12-07 Ralf Corsépius <ralf.corsepius@rtems.org> + * libnetworking/libc/ns_parse.c (ns_parserr): Comment out if ( section < 0 ) (type is unsigned). * libnetworking/libc/gethostbydns.c: Comment out __dns_getanswer diff --git a/cpukit/libnetworking/libc/gethostbyht.c b/cpukit/libnetworking/libc/gethostbyht.c index 4228b1c8c8..17723d707b 100644 --- a/cpukit/libnetworking/libc/gethostbyht.c +++ b/cpukit/libnetworking/libc/gethostbyht.c @@ -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); |