diff options
author | Eric Faurot <eric@cvs.openbsd.org> | 2009-06-06 05:30:46 +0000 |
---|---|---|
committer | Eric Faurot <eric@cvs.openbsd.org> | 2009-06-06 05:30:46 +0000 |
commit | 607ad8ca9547ba81cb9a65df3bc5bdbaaf5d9411 (patch) | |
tree | c674b544b2ad4bbfb3a18107bc7c25425415a8f0 | |
parent | a1f47ae1b3ab3d6d9e811d100317d0a970c5a5e4 (diff) |
allocate the correct amount of memory
ok pyr@
-rw-r--r-- | usr.sbin/relayd/snmp.c | 4 |
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); } |