summaryrefslogtreecommitdiffstats
path: root/cpukit/libnetworking
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2011-12-07 06:51:43 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2011-12-07 06:51:43 +0000
commitd1cbfaa89eaf6b56ea7375c3d156036eef2d0b3e (patch)
tree411418b707910103af91537e065640066b842ee2 /cpukit/libnetworking
parent2011-11-30 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-d1cbfaa89eaf6b56ea7375c3d156036eef2d0b3e.tar.bz2
2011-12-07 Ralf Corsépius <ralf.corsepius@rtems.org>
PR 1983/networking * libnetworking/libc/gethostbyht.c (gethostent_r): Abort if (!hostf).
Diffstat (limited to 'cpukit/libnetworking')
-rw-r--r--cpukit/libnetworking/libc/gethostbyht.c2
1 files changed, 1 insertions, 1 deletions
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);