artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f6861d7
)
fix fd leak in an error path
author
jsg
<jsg@openbsd.org>
Fri, 31 Aug 2018 05:20:36 +0000
(
05:20
+0000)
committer
jsg
<jsg@openbsd.org>
Fri, 31 Aug 2018 05:20:36 +0000
(
05:20
+0000)
ok mpi@
usr.sbin/snmpd/mib.c
patch
|
blob
|
history
diff --git
a/usr.sbin/snmpd/mib.c
b/usr.sbin/snmpd/mib.c
index
8cc556b
..
104b8a6
100644
(file)
--- a/
usr.sbin/snmpd/mib.c
+++ b/
usr.sbin/snmpd/mib.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: mib.c,v 1.9
0 2018/08/30 12:25:40
jsg Exp $ */
+/* $OpenBSD: mib.c,v 1.9
1 2018/08/31 05:20:36
jsg Exp $ */
/*
* Copyright (c) 2012 Joel Knight <joel@openbsd.org>
@@
-2937,7
+2937,7
@@
mib_carpgroupget(u_int idx)
if ((ifgr.ifgr_groups = calloc(1, len)) == NULL) {
log_warn("alloc");
-
return (NULL)
;
+
goto err
;
}
if (ioctl(s, SIOCGIFGLIST, (caddr_t)&ifgr) == -1) {
log_warn("SIOCGIFGLIST");