Dave Shield wrote:
I am not telling to remove the validation but update itOn 18 March 2010 07:34, sanjaykumar <[email protected]> wrote: eg: In below code udpEndpointLocalAddress is an array hence "(NULL == tbl_idx->udpEndpointLocalAddress) " will be never VALID. if ((NULL == tbl_idx->udpEndpointLocalAddress) || (tbl_idx->udpEndpointLocalAddress_len < (udpEndpointLocalAddress_val_ptr_len))) { snmp_log(LOG_ERR, "not enough space for value\n"); return MFD_ERROR; } What is my concern that MODIFY it like below or something else so that check should be valid if (('\0' == tbl_idx->udpEndpointLocalAddress[0]) || (tbl_idx->udpEndpointLocalAddress_len < (udpEndpointLocalAddress_val_ptr_len))) { snmp_log(LOG_ERR, "not enough space for value\n"); return MFD_ERROR; } Dave |
------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev
_______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
