git: b0ccc2e277ac - main - libpfctl: fix double free

Kristof Provost kp at FreeBSD.org
Sun Aug 29 13:26:59 UTC 2021


The branch main has been updated by kp:

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

commit b0ccc2e277acddd33c65b444e7841b780b3094d7
Author:     Kristof Provost <kp at FreeBSD.org>
AuthorDate: 2021-08-22 14:20:15 +0000
Commit:     Kristof Provost <kp at FreeBSD.org>
CommitDate: 2021-08-29 12:59:29 +0000

    libpfctl: fix double free
    
    Reviewed by:    donner
    MFC after:      1 week
    Sponsored by:   Modirum MDPay
    Differential Revision:  https://reviews.freebsd.org/D31695
---
 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);
 	}
 


More information about the dev-commits-src-all mailing list