diff options
author | Martijn van Duren <martijn@cvs.openbsd.org> | 2019-12-09 16:51:11 +0000 |
---|---|---|
committer | Martijn van Duren <martijn@cvs.openbsd.org> | 2019-12-09 16:51:11 +0000 |
commit | 73b90a1a9a9668b8fef80010ae8d581bd19b0e1e (patch) | |
tree | b0261fb60f4acab16719ca61c073956685425165 /usr.sbin | |
parent | 7388b0764294f36c91fdf27284f42a3dbeab3e95 (diff) |
Initialize length of uptime and trapoid for trap_agentx.
This probably needs a cleaner approach in the long run, but fixes the
ober_oid_cmp for now.
From gerhard_roth <at> genua <dot> de
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/snmpd/trap.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/snmpd/trap.c b/usr.sbin/snmpd/trap.c index f2709ab120c..721722051fd 100644 --- a/usr.sbin/snmpd/trap.c +++ b/usr.sbin/snmpd/trap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: trap.c,v 1.33 2019/10/24 12:39:27 tb Exp $ */ +/* $OpenBSD: trap.c,v 1.34 2019/12/09 16:51:10 martijn Exp $ */ /* * Copyright (c) 2008 Reyk Floeter <reyk@openbsd.org> @@ -83,6 +83,8 @@ trap_agentx(struct agentx_handle *h, struct agentx_pdu *pdu, int *idx, goto done; } + smi_scalar_oidlen(&uptime); + smi_scalar_oidlen(&trapoid); while (pdu->datalen > sizeof(struct agentx_hdr)) { x++; |