diff options
author | 2004-09-14 22:01:28 +0000 | |
---|---|---|
committer | 2004-09-14 22:01:28 +0000 | |
commit | 2ca9f3c43fbfbb6bb101708e522672112fb91246 (patch) | |
tree | 2cae3fc0b188ac6c2868bbbc21bac59e08f9edb7 | |
parent | move to 3.6-current (diff) | |
download | wireguard-openbsd-2ca9f3c43fbfbb6bb101708e522672112fb91246.tar.xz wireguard-openbsd-2ca9f3c43fbfbb6bb101708e522672112fb91246.zip |
paranoia: reset query->fd to -1 after close, from canacar some time ago
-rw-r--r-- | usr.sbin/ntpd/client.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/ntpd/client.c b/usr.sbin/ntpd/client.c index d9d868f3265..10a95fed44b 100644 --- a/usr.sbin/ntpd/client.c +++ b/usr.sbin/ntpd/client.c @@ -1,4 +1,4 @@ -/* $OpenBSD: client.c,v 1.32 2004/08/16 11:14:15 otto Exp $ */ +/* $OpenBSD: client.c,v 1.33 2004/09/14 22:01:28 henning Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -96,6 +96,7 @@ int client_nextaddr(struct ntp_peer *p) { close(p->query->fd); + p->query->fd = -1; if (p->addr_head.a == NULL) { ntp_host_dns(p->addr_head.name, p->id); |