diff options
Diffstat (limited to 'regress/usr.bin/nc/server-tcp.c')
-rw-r--r-- | regress/usr.bin/nc/server-tcp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/regress/usr.bin/nc/server-tcp.c b/regress/usr.bin/nc/server-tcp.c index 31c619f5fad..40d0f250e1e 100644 --- a/regress/usr.bin/nc/server-tcp.c +++ b/regress/usr.bin/nc/server-tcp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: server-tcp.c,v 1.2 2020/01/17 20:45:50 bluhm Exp $ */ +/* $OpenBSD: server-tcp.c,v 1.3 2020/01/21 22:47:39 bluhm Exp $ */ /* * Copyright (c) 2020 Alexander Bluhm <bluhm@openbsd.org> @@ -127,6 +127,7 @@ listen_socket(const char *host, const char *port) cause = "bind"; save_errno = errno; close(s); + s = -1; errno = save_errno; continue; } |