Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 6 Sep 2021 10:39:26 GMT
From:      Kristof Provost <kp@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 6f85e21674a1 - stable/13 - libpfctl: fix double free
Message-ID:  <202109061039.186AdQ7j039723@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by kp:

URL: https://cgit.FreeBSD.org/src/commit/?id=6f85e21674a15174be96de95275dd36b61a404dc

commit 6f85e21674a15174be96de95275dd36b61a404dc
Author:     Kristof Provost <kp@FreeBSD.org>
AuthorDate: 2021-08-22 14:20:15 +0000
Commit:     Kristof Provost <kp@FreeBSD.org>
CommitDate: 2021-09-06 08:06:29 +0000

    libpfctl: fix double free
    
    Reviewed by:    donner
    MFC after:      1 week
    Sponsored by:   Modirum MDPay
    Differential Revision:  https://reviews.freebsd.org/D31695
    
    (cherry picked from commit b0ccc2e277acddd33c65b444e7841b780b3094d7)
---
 lib/libpfctl/libpfctl.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/lib/libpfctl/libpfctl.c b/lib/libpfctl/libpfctl.c
index 7f1e72513018..7e6bc1b14a2a 100644
--- a/lib/libpfctl/libpfctl.c
+++ b/lib/libpfctl/libpfctl.c
@@ -860,7 +860,6 @@ pfctl_get_syncookies(int dev, struct pfctl_syncookies *s)
 	nvl = nvlist_unpack(nv.data, nv.len, 0);
 	free(nv.data);
 	if (nvl == NULL) {
-		free(nv.data);
 		return (EIO);
 	}
 



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