artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dda30f2
)
Use AF_UNSPEC not 0
author
kn
<kn@openbsd.org>
Wed, 11 Jul 2018 15:25:42 +0000
(15:25 +0000)
committer
kn
<kn@openbsd.org>
Wed, 11 Jul 2018 15:25:42 +0000
(15:25 +0000)
sbin/route/route.c
patch
|
blob
|
history
diff --git
a/sbin/route/route.c
b/sbin/route/route.c
index
d66cca6
..
a0ac03c
100644
(file)
--- a/
sbin/route/route.c
+++ b/
sbin/route/route.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: route.c,v 1.21
7 2018/07/10 13:11:38
kn Exp $ */
+/* $OpenBSD: route.c,v 1.21
8 2018/07/11 15:25:42
kn Exp $ */
/* $NetBSD: route.c,v 1.16 1996/04/15 18:27:05 cgd Exp $ */
/*
@@
-853,7
+853,7
@@
getaddr(int which, int af, char *s, struct hostent **hpp)
int afamily, bits, irc;
in_addr_t addr;
- if (af ==
0
) {
+ if (af ==
AF_UNSPEC
) {
if (strchr(s, ':') != NULL) {
af = AF_INET6;
aflen = sizeof(struct sockaddr_in6);