From a1399ba8cd69061090979b2a9bdc5b02c2814d77 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Wed, 7 Dec 2011 06:49:32 +0000 Subject: =?UTF-8?q?2011-12-07=09Ralf=20Cors=C3=A9pius=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR 1983/networking * libnetworking/libc/gethostbyht.c (gethostent_r): Abort if (!hostf). --- cpukit/libnetworking/libc/gethostbyht.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cpukit/libnetworking/libc/gethostbyht.c') 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); -- cgit v1.2.3