artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ad8537
)
fix double free in mib_carpgroupget() error path
author
jsg
<jsg@openbsd.org>
Thu, 30 Aug 2018 12:25:40 +0000
(12:25 +0000)
committer
jsg
<jsg@openbsd.org>
Thu, 30 Aug 2018 12:25:40 +0000
(12:25 +0000)
ok claudio@ miko@
usr.sbin/snmpd/mib.c
patch
|
blob
|
history
diff --git
a/usr.sbin/snmpd/mib.c
b/usr.sbin/snmpd/mib.c
index
c4732fa
..
8cc556b
100644
(file)
--- 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);