summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoreric <eric@openbsd.org>2009-06-06 05:30:45 +0000
committereric <eric@openbsd.org>2009-06-06 05:30:45 +0000
commit42ae37cf32f20bffcf2cd0d80d922012eee03900 (patch)
tree944f404907b879466622ab85a3579f68ee688175
parentinstead of #ifndef SMALL_KERNELing the whole sg_dma.c file, just put the (diff)
downloadwireguard-openbsd-42ae37cf32f20bffcf2cd0d80d922012eee03900.tar.xz
wireguard-openbsd-42ae37cf32f20bffcf2cd0d80d922012eee03900.zip
allocate the correct amount of memory
ok pyr@
-rw-r--r--usr.sbin/relayd/snmp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/relayd/snmp.c b/usr.sbin/relayd/snmp.c
index d7d82ce86f1..8dbc6d24a6a 100644
--- a/usr.sbin/relayd/snmp.c
+++ b/usr.sbin/relayd/snmp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: snmp.c,v 1.5 2009/06/05 23:39:51 pyr Exp $ */
+/* $OpenBSD: snmp.c,v 1.6 2009/06/06 05:30:45 eric Exp $ */
/*
* Copyright (c) 2008 Reyk Floeter <reyk@openbsd.org>
@@ -142,7 +142,7 @@ snmp_getsock(struct imsgev *iev)
if (s != -1) {
log_debug("snmp_getsock: got new snmp socket %d", s);
if (iev_snmp == NULL && (iev_snmp = (struct imsgev *)
- calloc(1, sizeof(struct imsgbuf))) == NULL)
+ calloc(1, sizeof(struct imsgev))) == NULL)
fatal("snmp_getsock: calloc");
imsg_init(&iev_snmp->ibuf, s);
}