openbsd-ports/net/kismet/patches/patch-prism2source_cc
kili 43ab6c0e68 Update to 2006-04-R1, with some patches from the upstream kismet SVN.
While here, update my mail address and comment most of
the patch files.

Some WANTLIB spanking and ok, sturm@
2006-11-01 21:13:19 +00:00

17 lines
436 B
Plaintext

$OpenBSD: patch-prism2source_cc,v 1.1 2006/11/01 21:13:20 kili Exp $
# From upstream SVN.
--- prism2source.cc.orig Thu Aug 12 03:59:50 2004
+++ prism2source.cc Fri Oct 20 15:38:06 2006
@@ -107,7 +107,8 @@ int Prism2Source::FetchPacket(kis_packet
if (FD_ISSET(read_sock, &rs)) {
char a;
- read(read_sock, &a, 1);
+ if (read(read_sock, &a, 1)!=1)
+ return -1;
}
// u_char buf[MAX_PACKET_LEN];