From 9f3b8f5e2f4c3667a4c7af044928953dbc2df907 Mon Sep 17 00:00:00 2001 From: Hans-Joerg Hoexer Date: Fri, 10 Dec 2004 16:51:32 +0000 Subject: provide a valid sockaddr_storage structure to be used as second argument for accept(2) ok djm markus --- usr.bin/nc/netcat.c | 4 ++-- 1 file 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 * @@ -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; -- cgit v1.2.3