diff options
author | Ruslan Ermilov <ru@FreeBSD.org> | 2000-11-13 08:18:00 +0000 |
---|---|---|
committer | Ruslan Ermilov <ru@FreeBSD.org> | 2000-11-13 08:18:00 +0000 |
commit | 7cc16fa8e4f85b6d9f2317cd133ad444bb3f8ffd (patch) | |
tree | 4f1faee56d3dc6af132bb042bca7e61ef2bd623c /net/tcpmssd/files/patch-aa | |
parent | Add kdrill, a kanji tutor/quiz program. (diff) |
The program crashed if ran without -i option.
Submitted by: Udo Erdelhoff <ue@nathan.ruhr.de>
Notes
Notes:
svn path=/head/; revision=35054
Diffstat (limited to '')
-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) { |