patch: prevent endless loop after truncating a 64bit int to 32bit

2008-03-19 Thread Lars Ellenberg
in asn_realloc_rbuild_int, testvalue must be derived from the truncated value, not from the original input. otherwise there is a lot of possible input that can lead to "while (0 != -1) { realloc }" -- Lars Ellenberg CHECK_OVERFLOW_S does for negative values: ... } else if (x < INT32_MIN) {

RE: trap error message

2008-03-19 Thread Siva Prakash Reddy G
Hi! Thank you very much for your constant support Dave. As you said I should create a netsnmp_session structure, specifying the trap destination and admin settings and the call snmp_send, till here it is fine. But how I'll create netsnmp_session structure is there any API