Hi,

Please help us for an issue observing in our application.

SNMP version using  : net-snmp-5.9.4
OpenSSL version : openssl-3.0.13

Our application supports

  *   SNMP polling for version 1 , 2c and 3 and encryption SHA, MD5, AES, DES,
  *   SNMP traps

We are using more than 60 + devices to get the SNMP information. We use 
continuous device polling via threads.
Now we found memory leaks in the application while using SNMP v3 version. No 
issues found in SNMP v2 version.
The issues found in snmp_sess_synch_response with v3 version only.
When we use all other code except this line, no leak found. When we include 
this function with v3 issue coming.

Please find the usage below,

snmp_sess_init(&session);

ss = snmp_sess_open(&session);

Setting v3 parameters
{

}

/*pdu create/*
snmp_pdu_create

snmp_sess_synch_response(ss, pdu, &response);

/* data parsing /*

if (response)
{
      snmp_free_pdu(response);
}

//freed V3 and other configuration memory
free(session.peername); session.peername= NULL;
free(session.securityName); session.peername= NULL;

snmp_sess_close(ss);

Please let us know any memory leak bug reported for V3 in openssl or net snmp 
side and any patch or fix is available?
Please reply ASAP it is Very CRITICAL

Thanks
Sreeja Shaji
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to