summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhshoexer <hshoexer@openbsd.org>2004-12-10 16:51:31 +0000
committerhshoexer <hshoexer@openbsd.org>2004-12-10 16:51:31 +0000
commitafd953b818cde1fac5bafd306925217d4b68a0a5 (patch)
tree55844ba4b924fbe4ee0c96a4171d7763fcbca74c
parentcleanup extra includes and -Wall (diff)
downloadwireguard-openbsd-afd953b818cde1fac5bafd306925217d4b68a0a5.tar.xz
wireguard-openbsd-afd953b818cde1fac5bafd306925217d4b68a0a5.zip
provide a valid sockaddr_storage structure to be used as second argument for
accept(2) ok djm markus
-rw-r--r--usr.bin/nc/netcat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/nc/netcat.c b/usr.bin/nc/netcat.c
index 5e034466d47..3c610b9913b 100644
--- a/usr.bin/nc/netcat.c
+++ b/usr.bin/nc/netcat.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: netcat.c,v 1.75 2004/10/17 03:13:55 djm Exp $ */
+/* $OpenBSD: netcat.c,v 1.76 2004/12/10 16:51:31 hshoexer Exp $ */
/*
* Copyright (c) 2001 Eric Jackson <ericj@monkey.org>
*
@@ -102,7 +102,7 @@ main(int argc, char *argv[])
struct addrinfo hints;
struct servent *sv;
socklen_t len;
- struct sockaddr *cliaddr;
+ struct sockaddr_storage cliaddr;
char *proxy;
char *proxyhost = "", *proxyport = NULL;
struct addrinfo proxyhints;