summaryrefslogtreecommitdiff
path: root/lib/sockopt.c
diff options
context:
space:
mode:
authorpaul <paul>2004-10-22 10:54:39 +0000
committerpaul <paul>2004-10-22 10:54:39 +0000
commit7d9c6e511597ee76d42bede782c9ddb9e1f83389 (patch)
tree2c23062b129595c15e48153a2508500e93b2829e /lib/sockopt.c
parentc49ad8f1b0775c1b35ea9bf75f44f3eca105d786 (diff)
2004-10-13 Paul Jakma <paul@dishone.st>
* sockopt.c: (getsockopt_ipv4_ifindex) no ifindex should be 0, not -1.
Diffstat (limited to 'lib/sockopt.c')
-rw-r--r--lib/sockopt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sockopt.c b/lib/sockopt.c
index c448d308..d16c2beb 100644
--- a/lib/sockopt.c
+++ b/lib/sockopt.c
@@ -334,9 +334,9 @@ getsockopt_ipv4_ifindex (struct msghdr *msgh)
#else /* neither IP_PKTINFO nor IP_RECVIF, broken */
#warning "getsockopt_ipv4_pktinfo_ifindex: dont have PKTINFO or RECVIF"
-#warning "things will be broken on this platform!"
+#warning "things probably will be broken on this platform!"
/* XXX why not -1 - this is a failure condition. */
- ifindex = -1;
+ ifindex = 0;
#endif /* IP_PKTINFO */
return ifindex;
}