diff options
author | Damien Miller <djm@mindrot.org> | 2000-09-29 01:59:14 +0200 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2000-09-29 01:59:14 +0200 |
commit | e9edd7c3b57b3db9b85ff7ddde4593b19d5ea176 (patch) | |
tree | b154bfa7988d33c2f95a2edc79efc29210ba476c /fake-getnameinfo.c | |
parent | - (djm) Fix SSH2 not terminating until all background tasks done problem. (diff) | |
download | openssh-e9edd7c3b57b3db9b85ff7ddde4593b19d5ea176.tar.xz openssh-e9edd7c3b57b3db9b85ff7ddde4593b19d5ea176.zip |
- (djm) Another off-by-one fix from Pavel Kankovsky
<peak@argo.troja.mff.cuni.cz>
Diffstat (limited to '')
-rw-r--r-- | fake-getnameinfo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fake-getnameinfo.c b/fake-getnameinfo.c index ce992d111..203621f0d 100644 --- a/fake-getnameinfo.c +++ b/fake-getnameinfo.c @@ -22,7 +22,7 @@ int getnameinfo(const struct sockaddr *sa, size_t salen, char *host, if (serv) { snprintf(tmpserv, sizeof(tmpserv), "%d", ntohs(sin->sin_port)); - if (strlen(tmpserv) > servlen) + if (strlen(tmpserv) >= servlen) return EAI_MEMORY; else strcpy(serv, tmpserv); |