On 24 February 2011 10:36, sujata patra <[email protected]> wrote: > I am getting this doubt as I found that strlen() is crashing on Solaris > 10(*only*)
Are you sure that the string you are running this on is null-terminated? Many Net-SNMP data structures use (size, value) pairs to accomodate binary values (which might well include an internal 0 value). > This is with Net-SNMP(5.4) . do you see any issue ? Nothing springs out, but you haven't really given us much context to work with. > snmp_set_var_typed_value( request->requestvb, ASN_OCTET_STR, > (u_char*)table_entry->messageId, > strlen(table_entry->messageId)); I presume that this is the strlen call that's failing. What does the 'table_entry' data structure look like? Dave ------------------------------------------------------------------------------ Free Software Download: Index, Search & Analyze Logs and other IT data in Real-Time with Splunk. Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. http://p.sf.net/sfu/splunk-dev2dev _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
