summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrob <rob@cvs.openbsd.org>2019-04-29 16:04:06 +0000
committerrob <rob@cvs.openbsd.org>2019-04-29 16:04:06 +0000
commitb473ae5c463a0714f6a10198ab62f9970ce9e785 (patch)
tree1987dc5b7067d0081f58c5a6daf5f3fd2db11ec9
parent2969d663fd56e7f94fe0893c95fd4c17e92468f4 (diff)
Remove unnecessary end-of-contents octets.
ok claudio@
-rw-r--r--usr.sbin/snmpd/snmpe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/snmpd/snmpe.c b/usr.sbin/snmpd/snmpe.c
index d8a02dd87c8..e39fd0bc7b0 100644
--- a/usr.sbin/snmpd/snmpe.c
+++ b/usr.sbin/snmpd/snmpe.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: snmpe.c,v 1.56 2018/11/13 07:29:07 mestre Exp $ */
+/* $OpenBSD: snmpe.c,v 1.57 2019/04/29 16:04:05 rob Exp $ */
/*
* Copyright (c) 2007, 2008, 2012 Reyk Floeter <reyk@openbsd.org>
@@ -857,7 +857,7 @@ snmpe_encode(struct snmp_message *msg)
}
}
- if (!ber_printf_elements(epdu, "tiii{e}.", BER_CLASS_CONTEXT,
+ if (!ber_printf_elements(epdu, "tiii{e}", BER_CLASS_CONTEXT,
msg->sm_context, msg->sm_request,
msg->sm_error, msg->sm_errorindex,
msg->sm_varbindresp)) {