Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Jan 2008 21:52:52 GMT
From:      "Christian S.J. Peron" <csjp@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 134488 for review
Message-ID:  <200801302152.m0ULqqms013301@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=134488

Change 134488 by csjp@csjp_xor on 2008/01/30 21:52:12

	Make sure the we delete the regions for the correct buffer.

Affected files ...

.. //depot/projects/zcopybpf/src/contrib/libpcap/pcap-bpf.c#20 edit

Differences ...

==== //depot/projects/zcopybpf/src/contrib/libpcap/pcap-bpf.c#20 (text+ko) ====

@@ -1255,8 +1255,8 @@
 	if (p->zerocopy) {
 		if (p->zbuf1 != MAP_FAILED && p->zbuf1 != NULL)
 			munmap(p->zbuf1, p->zbufsize);
-		if (p->zbuf2 != MAP_FAILED && p->zbuf1 != NULL)
-			munmap(p->zbuf1, p->zbufsize);
+		if (p->zbuf2 != MAP_FAILED && p->zbuf2 != NULL)
+			munmap(p->zbuf2, p->zbufsize);
 	} else
 #endif
 	if (p->buffer != NULL)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200801302152.m0ULqqms013301>