diff options
author | Martijn van Duren <martijn@cvs.openbsd.org> | 2023-12-12 20:18:40 +0000 |
---|---|---|
committer | Martijn van Duren <martijn@cvs.openbsd.org> | 2023-12-12 20:18:40 +0000 |
commit | 22f8c625f23c47b0eb2140917090a8a9cc295cc0 (patch) | |
tree | 2da7e3d97f73bce68949f87a07a3da693a63014a /usr.sbin/snmpd | |
parent | dfdb7aa4e27514383f0dc518fea0edef4ba2abc0 (diff) |
The OID inside snmpTrapOID is of type NOTIFICATION-TYPE, which does not
have a zero appended.
OK tb@
Diffstat (limited to 'usr.sbin/snmpd')
-rw-r--r-- | usr.sbin/snmpd/trap.c | 4 |
1 files 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 <reyk@openbsd.org> @@ -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 |