diff options
author | 2013-10-21 09:02:37 +0000 | |
---|---|---|
committer | 2013-10-21 09:02:37 +0000 | |
commit | a7055e1f89c0e3b222eb7d13968f720d46d8dc53 (patch) | |
tree | 1bbe3a3890ed17c6a35aa11f2865a27ccdbf801d | |
parent | Set the requested rdomain on the socket instead of only on the IPv4 part. (diff) | |
download | wireguard-openbsd-a7055e1f89c0e3b222eb7d13968f720d46d8dc53.tar.xz wireguard-openbsd-a7055e1f89c0e3b222eb7d13968f720d46d8dc53.zip |
Allow a user to switch to rdomain zero
-rw-r--r-- | usr.bin/telnet/commands.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/usr.bin/telnet/commands.c b/usr.bin/telnet/commands.c index e76082b4835..0e52c0485ab 100644 --- a/usr.bin/telnet/commands.c +++ b/usr.bin/telnet/commands.c @@ -1,4 +1,4 @@ -/* $OpenBSD: commands.c,v 1.53 2011/06/21 17:31:07 mikeb Exp $ */ +/* $OpenBSD: commands.c,v 1.54 2013/10/21 09:02:37 phessler Exp $ */ /* $NetBSD: commands.c,v 1.14 1996/03/24 22:03:48 jtk Exp $ */ /* @@ -2396,11 +2396,9 @@ tn(argc, argv) if (net < 0) continue; - if (rtableid) { - if (setsockopt(net, SOL_SOCKET, SO_RTABLE, &rtableid, - sizeof(rtableid)) == -1) - perror("setsockopt (SO_RTABLE)"); - } + if (setsockopt(net, SOL_SOCKET, SO_RTABLE, &rtableid, + sizeof(rtableid)) == -1) + perror("setsockopt (SO_RTABLE)"); if (aliasp) { struct addrinfo ahints, *ares; |