From ca6116e72e5e4eff83fa2547a1a39dc537f534fc Mon Sep 17 00:00:00 2001 From: martijn Date: Tue, 12 Dec 2023 20:18:39 +0000 Subject: [PATCH] The OID inside snmpTrapOID is of type NOTIFICATION-TYPE, which does not have a zero appended. OK tb@ --- usr.sbin/snmpd/trap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.sbin/snmpd/trap.c b/usr.sbin/snmpd/trap.c index ec967100ebe..043799a3999 100644 --- a/usr.sbin/snmpd/trap.c +++ b/usr.sbin/snmpd/trap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: trap.c,v 1.39 2023/11/12 20:02:05 martijn Exp $ */ +/* $OpenBSD: trap.c,v 1.40 2023/12/12 20:18:39 martijn Exp $ */ /* * Copyright (c) 2008 Reyk Floeter @@ -46,7 +46,7 @@ trap_init(void) * Send a coldStart to notify that the daemon has been * started and re-initialized. */ - trap_send(&OID(MIB_coldStart, 0), NULL); + trap_send(&OID(MIB_coldStart), NULL); } int -- 2.20.1