artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d6c685c
)
return -1 on host() address parsing failure, not 1.
author
bcook
<bcook@openbsd.org>
Fri, 9 Jan 2015 23:44:07 +0000
(23:44 +0000)
committer
bcook
<bcook@openbsd.org>
Fri, 9 Jan 2015 23:44:07 +0000
(23:44 +0000)
Match what parse.y expects it to return.
ok millert@
usr.sbin/ntpd/client.c
patch
|
blob
|
history
diff --git
a/usr.sbin/ntpd/client.c
b/usr.sbin/ntpd/client.c
index
0e7d454
..
0d984a3
100644
(file)
--- a/
usr.sbin/ntpd/client.c
+++ b/
usr.sbin/ntpd/client.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: client.c,v 1.9
6 2015/01/09 07:35:37 deraadt
Exp $ */
+/* $OpenBSD: client.c,v 1.9
7 2015/01/09 23:44:07 bcook
Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@
-112,7
+112,7
@@
client_nextaddr(struct ntp_peer *p)
return (-1);
}
- if ((p->addr = p->addr->next) == NULL)
+ if (
p->addr == NULL ||
(p->addr = p->addr->next) == NULL)
p->addr = p->addr_head.a;
p->shift = 0;