[AGENT++] [BUG] snmp++v3.2.24: Initialization of rid less random than intended

Dominik Vogt Dominik.Vogt at external.thalesgroup.com
Tue Jul 27 10:08:20 CEST 2010


uxsnmp.cpp:719

  current_rid = (rand() % (PDU_MAX_RID - PDU_MIN_RID -1)) + PDU_MIN_RID;
                                                    ^^^^

This should be +1 to get a random number in the full range of allowed
rids.  The current code generates a number between PDU_MIN_RID and
PDU_MAX_RID - 2.

Ciao

Dominik ^_^  ^_^




More information about the AGENTPP mailing list