diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2018-08-30 12:25:41 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2018-08-30 12:25:41 +0000 |
commit | 06a995f9594c49d8c650ef10592459cb6276df6e (patch) | |
tree | 0f9b0618b5904fe905262109de6a79ddadc46c07 /usr.sbin/snmpd | |
parent | 031fb07bcdb86fb5a101435b2e5c246d5a11b640 (diff) |
fix double free in mib_carpgroupget() error path
ok claudio@ miko@
Diffstat (limited to 'usr.sbin/snmpd')
-rw-r--r-- | usr.sbin/snmpd/mib.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/usr.sbin/snmpd/mib.c b/usr.sbin/snmpd/mib.c index c4732fa858f..8cc556b0319 100644 --- a/usr.sbin/snmpd/mib.c +++ b/usr.sbin/snmpd/mib.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mib.c,v 1.89 2018/06/04 18:05:18 gerhard Exp $ */ +/* $OpenBSD: mib.c,v 1.90 2018/08/30 12:25:40 jsg Exp $ */ /* * Copyright (c) 2012 Joel Knight <joel@openbsd.org> @@ -2941,7 +2941,6 @@ mib_carpgroupget(u_int idx) } if (ioctl(s, SIOCGIFGLIST, (caddr_t)&ifgr) == -1) { log_warn("SIOCGIFGLIST"); - free(ifgr.ifgr_groups); goto err; } close(s); |