summaryrefslogtreecommitdiff
path: root/usr.bin/ssh/canohost.c
diff options
context:
space:
mode:
authorMarkus Friedl <markus@cvs.openbsd.org>2000-01-04 13:41:33 +0000
committerMarkus Friedl <markus@cvs.openbsd.org>2000-01-04 13:41:33 +0000
commit3cc0fdf59cb12a9819c742bfd4c26bbb22c31421 (patch)
treed58c0d777524c25e4fb0e5c728c510b87310e0d0 /usr.bin/ssh/canohost.c
parent69ef2500e6a913493d4c324319200e75b22ec99b (diff)
more hints (hints.ai_socktype=SOCK_STREAM) for getaddrinfo, from itojun@
Diffstat (limited to 'usr.bin/ssh/canohost.c')
-rw-r--r--usr.bin/ssh/canohost.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/ssh/canohost.c b/usr.bin/ssh/canohost.c
index 095d0136968..fcf743cd417 100644
--- a/usr.bin/ssh/canohost.c
+++ b/usr.bin/ssh/canohost.c
@@ -14,7 +14,7 @@
*/
#include "includes.h"
-RCSID("$Id: canohost.c,v 1.10 2000/01/04 00:07:58 markus Exp $");
+RCSID("$Id: canohost.c,v 1.11 2000/01/04 13:41:32 markus Exp $");
#include "packet.h"
#include "xmalloc.h"
@@ -70,6 +70,7 @@ get_remote_hostname(int socket)
*/
memset(&hints, 0, sizeof(hints));
hints.ai_family = from.ss_family;
+ hints.ai_socktype = SOCK_STREAM;
if (getaddrinfo(name, NULL, &hints, &aitop) != 0) {
log("reverse mapping checking getaddrinfo for %.700s failed - POSSIBLE BREAKIN ATTEMPT!", name);
strlcpy(name, ntop, sizeof name);