Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/npf/npftest/libnpftest npftest: fix double-free in ...



details:   https://anonhg.NetBSD.org/src/rev/d05a98b43ed5
branches:  trunk
changeset: 452824:d05a98b43ed5
user:      rmind <rmind%NetBSD.org@localhost>
date:      Thu Jul 25 01:18:05 2019 +0000

description:
npftest: fix double-free in npf_nbuf_test().

diffstat:

 usr.sbin/npf/npftest/libnpftest/npf_nbuf_test.c |  2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r 9218cd01c7a3 -r d05a98b43ed5 usr.sbin/npf/npftest/libnpftest/npf_nbuf_test.c
--- a/usr.sbin/npf/npftest/libnpftest/npf_nbuf_test.c   Thu Jul 25 01:07:32 2019 +0000
+++ b/usr.sbin/npf/npftest/libnpftest/npf_nbuf_test.c   Thu Jul 25 01:18:05 2019 +0000
@@ -201,7 +201,6 @@
                bufb = parse_nbuf_chain(m1);
                ok = validate_mbuf_data(bufa, bufb);
                CHECK_TRUE(ok);
-               m_freem(m1);
        }
 
        m2 = mbuf_bytesize(MBUF_CHAIN_LEN);
@@ -209,7 +208,6 @@
        bufb = parse_nbuf_chain(m2);
        ok = validate_mbuf_data(bufa, bufb);
        CHECK_TRUE(ok);
-       m_freem(m2);
 
        (void)verbose;
        return true;



Home | Main Index | Thread Index | Old Index