From 7cc16fa8e4f85b6d9f2317cd133ad444bb3f8ffd Mon Sep 17 00:00:00 2001 From: Ruslan Ermilov Date: Mon, 13 Nov 2000 08:18:00 +0000 Subject: The program crashed if ran without -i option. Submitted by: Udo Erdelhoff --- net/tcpmssd/files/patch-aa | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 net/tcpmssd/files/patch-aa (limited to 'net/tcpmssd/files/patch-aa') 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) { -- cgit v1.2.3