diff options
author | Hans-Joerg Hoexer <hshoexer@cvs.openbsd.org> | 2004-12-10 16:51:32 +0000 |
---|---|---|
committer | Hans-Joerg Hoexer <hshoexer@cvs.openbsd.org> | 2004-12-10 16:51:32 +0000 |
commit | 9f3b8f5e2f4c3667a4c7af044928953dbc2df907 (patch) | |
tree | cb38ff36245aa6fc03d1e9ad9c4790b103f0058c | |
parent | f4b0712eb06af23be041faad8494b63d21884be1 (diff) |
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.c | 4 |
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; |