diff options
Diffstat (limited to 'usr.sbin/tftp-proxy')
| -rw-r--r-- | usr.sbin/tftp-proxy/tftp-proxy.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/usr.sbin/tftp-proxy/tftp-proxy.c b/usr.sbin/tftp-proxy/tftp-proxy.c index 4fb3eb568e1..9b0409e375d 100644 --- a/usr.sbin/tftp-proxy/tftp-proxy.c +++ b/usr.sbin/tftp-proxy/tftp-proxy.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tftp-proxy.c,v 1.3 2012/07/11 12:00:21 dlg Exp $ +/* $OpenBSD: tftp-proxy.c,v 1.4 2012/08/19 23:21:24 deraadt Exp $ * * Copyright (c) 2005 DLS Internet Services * Copyright (c) 2004, 2005 Camiel Dobbelaar, <cd@sentia.nl> @@ -486,8 +486,7 @@ proxy_listen(const char *addr, const char *port, int family) struct addrinfo hints, *res, *res0; int error; - int s; - + int s, on = 1; int serrno; const char *cause = NULL; @@ -496,8 +495,6 @@ proxy_listen(const char *addr, const char *port, int family) hints.ai_socktype = SOCK_DGRAM; hints.ai_flags = AI_PASSIVE; - int on = 1; - TAILQ_INIT(&proxy_listeners); error = getaddrinfo(addr, port, &hints, &res0); |
