From 9a355502e1839e245f7ee0e26a90bf9b639b9072 Mon Sep 17 00:00:00 2001 From: goldsimon Date: Fri, 8 Jul 2016 10:56:24 +0200 Subject: [PATCH] snmp: fix compiling traps :-( --- src/apps/snmp/snmp_traps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apps/snmp/snmp_traps.c b/src/apps/snmp/snmp_traps.c index 4baa2922..eb5360ac 100644 --- a/src/apps/snmp/snmp_traps.c +++ b/src/apps/snmp/snmp_traps.c @@ -257,7 +257,7 @@ snmp_trap_varbind_sum(struct snmp_msg_trap *trap, struct snmp_varbind *varbinds) while (varbind != NULL) { struct snmp_varbind_len len; - if (snmp_length_outbound_varbind(varbind, &len) == ERR_OK) { + if (snmp_varbind_length(varbind, &len) == ERR_OK) { tot_len += 1 + len.vb_len_len + len.vb_value_len; }