From: jsg Date: Thu, 30 Aug 2018 12:25:40 +0000 (+0000) Subject: fix double free in mib_carpgroupget() error path X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=7e531a349952812637ade0405144a103cf26d6d5;p=openbsd fix double free in mib_carpgroupget() error path ok claudio@ miko@ --- 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 @@ -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);