Skip to content

Commit

Permalink
NEWS: snmptrap: BUG: 2899: Patch from Drew Roedersheimer to set libra…
Browse files Browse the repository at this point in the history
…ry engineboots/time values before sending
  • Loading branch information
hardaker committed Jan 8, 2019
1 parent f42a4af commit 79f0144
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apps/snmptrap.c
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,9 @@ main(int argc, char *argv[])
session.engineBoots = 1;
if (session.engineTime == 0) /* not really correct, */
session.engineTime = get_uptime(); /* but it'll work. Sort of. */

set_enginetime(session.securityEngineID, session.securityEngineIDLen,
session.engineBoots, session.engineTime, TRUE);
}

ss = snmp_add(&session,
Expand Down

0 comments on commit 79f0144

Please sign in to comment.