1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00
freebsd-ports/net/tcpmssd/files/patch-aa
Ruslan Ermilov 7cc16fa8e4 The program crashed if ran without -i option.
Submitted by:	Udo Erdelhoff <ue@nathan.ruhr.de>
2000-11-13 08:18:00 +00:00

12 lines
294 B
Plaintext

--- 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) {