summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2019-03-31 00:57:07 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2019-03-31 00:57:07 +0000
commit30564186ed9614e1ab716a378a4f531ba5c2b282 (patch)
tree16ae9cee0126bd932219f257a833e1b69c9e80b2 /sbin
parente2fd358136cbd239d2df30370b0cb0956ce2a1eb (diff)
use AI_NUMERICHOST for ip conversion. ok florian
Diffstat (limited to 'sbin')
-rw-r--r--sbin/unwind/unwind.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/unwind/unwind.c b/sbin/unwind/unwind.c
index 23c100dcdb2..74b8c6ca37e 100644
--- a/sbin/unwind/unwind.c
+++ b/sbin/unwind/unwind.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: unwind.c,v 1.20 2019/03/30 12:52:03 florian Exp $ */
+/* $OpenBSD: unwind.c,v 1.21 2019/03/31 00:57:06 tedu Exp $ */
/*
* Copyright (c) 2018 Florian Obser <florian@openbsd.org>
@@ -882,7 +882,7 @@ open_ports(void)
memset(&hints, 0, sizeof(hints));
hints.ai_family = AF_INET;
hints.ai_socktype = SOCK_DGRAM;
- hints.ai_flags = AI_PASSIVE;
+ hints.ai_flags = AI_NUMERICHOST | AI_PASSIVE;
error = getaddrinfo("127.0.0.1", "domain", &hints, &res0);
if (!error && res0) {