aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2011-12-26 08:59:17 +0000
committerXin LI <delphij@FreeBSD.org>2011-12-26 08:59:17 +0000
commitb4a93b50d6953742f0c5ba2d7034c84ac3b9ed7f (patch)
treeb292efa5f8ad7b219d754196e3d2258087becdec
parentc98f06c929bb8c8a81b4254bebab2fb08a98b6ce (diff)
downloadsrc-b4a93b50d6953742f0c5ba2d7034c84ac3b9ed7f.tar.gz
src-b4a93b50d6953742f0c5ba2d7034c84ac3b9ed7f.zip
Import nc from OpenBSD 5.0.vendor/netcat/5.0
Notes
Notes: svn path=/vendor/netcat/dist/; revision=228894 svn path=/vendor/netcat/5.0/; revision=228895; tag=vendor/netcat/5.0
-rw-r--r--netcat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/netcat.c b/netcat.c
index 5c81e43e859d..a5f5745f3ada 100644
--- a/netcat.c
+++ b/netcat.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: netcat.c,v 1.100 2011/01/09 22:16:46 jeremy Exp $ */
+/* $OpenBSD: netcat.c,v 1.101 2011/06/21 17:31:07 mikeb Exp $ */
/*
* Copyright (c) 2001 Eric Jackson <ericj@monkey.org>
*
@@ -552,7 +552,7 @@ remote_connect(const char *host, const char *port, struct addrinfo hints)
continue;
if (rtableid) {
- if (setsockopt(s, IPPROTO_IP, SO_RTABLE, &rtableid,
+ if (setsockopt(s, SOL_SOCKET, SO_RTABLE, &rtableid,
sizeof(rtableid)) == -1)
err(1, "setsockopt SO_RTABLE");
}