about summary refs log tree commit diff
path: root/inet/rexec.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2006-04-07 08:17:33 +0000
committerUlrich Drepper <drepper@redhat.com>2006-04-07 08:17:33 +0000
commit053f7b2b47eeab73512697323068034c539914b5 (patch)
treee47cd9ab00896077e10a79dea8acb5d93b6cdf67 /inet/rexec.c
parent616d91335a8be5fda715a34dac48bb067d77b523 (diff)
downloadglibc-053f7b2b47eeab73512697323068034c539914b5.tar.gz
glibc-053f7b2b47eeab73512697323068034c539914b5.tar.xz
glibc-053f7b2b47eeab73512697323068034c539914b5.zip
* 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].
Diffstat (limited to 'inet/rexec.c')
-rw-r--r--inet/rexec.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/inet/rexec.c b/inet/rexec.c
index 6deb1feb45..07ddeeafea 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);