From 053f7b2b47eeab73512697323068034c539914b5 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 7 Apr 2006 08:17:33 +0000 Subject: * inet/rexec.c (rexec_af): If we have no canonical name don't proceed further [Coverity CID 86]. * iconv/iconv_charmap.c (process_fd): Initialize inptr from inbuf, not to NULL [Coverity CID 88]. --- inet/rexec.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'inet') diff --git a/inet/rexec.c b/inet/rexec.c index 6deb1fe..07ddeea 100644 --- a/inet/rexec.c +++ b/inet/rexec.c @@ -87,8 +87,11 @@ rexec_af(ahost, rport, name, pass, cmd, fd2p, af) return (-1); } *ahost = ahostbuf; - } else + } else { *ahost = NULL; + __set_errno (ENOENT); + return -1; + } ruserpass(res0->ai_canonname, &name, &pass); retry: s = __socket(res0->ai_family, res0->ai_socktype, 0); -- cgit v1.1