diff options
author | ru <ru@FreeBSD.org> | 2000-11-13 16:18:00 +0800 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2000-11-13 16:18:00 +0800 |
commit | 5967177eacc04baba7f291ccede44a5ccba4707b (patch) | |
tree | 9b263096d22a97fb833c529c764fa67ec35beede /net/tcpmssd | |
parent | 0b3dc8fe366caccbdbb9c2fa562b47fa679aff80 (diff) | |
download | freebsd-ports-gnome-5967177eacc04baba7f291ccede44a5ccba4707b.tar.gz freebsd-ports-gnome-5967177eacc04baba7f291ccede44a5ccba4707b.tar.zst freebsd-ports-gnome-5967177eacc04baba7f291ccede44a5ccba4707b.zip |
The program crashed if ran without -i option.
Submitted by: Udo Erdelhoff <ue@nathan.ruhr.de>
Diffstat (limited to 'net/tcpmssd')
-rw-r--r-- | net/tcpmssd/files/patch-aa | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/net/tcpmssd/files/patch-aa b/net/tcpmssd/files/patch-aa new file mode 100644 index 000000000000..73f3953d5fb6 --- /dev/null +++ b/net/tcpmssd/files/patch-aa @@ -0,0 +1,11 @@ +--- tcpmssd.c~ Mon Jul 17 20:57:24 2000 ++++ tcpmssd.c Mon Nov 13 10:10:37 2000 +@@ -176,7 +176,7 @@ + continue; + } + +- if (FD_ISSET(rtsock, &fdset)) { ++ if (rtsock != -1 && FD_ISSET(rtsock, &fdset)) { + struct if_msghdr ifm; + + if ((pktlen = read(rtsock, &ifm, sizeof(ifm))) == -1) { |