On Thu, 2005-04-14 at 08:36, Hongjunli wrote:
>  when execution arrives at this line: 
>     snmp_set_var_value(idx, (u_char *)entry->AdminPwd, 
> strlen(entry->AdminPwd));
> the agent will be shut down .Error message is "segment default"

What's the value of "entry->AdminPwd" when this happens?

>     DEBUGMSGTL(("AdminUsrTable", "AdminUser value : %s 
> AdminUsrTable_get_next_data_point\n",entry->AdminUsr));
>     DEBUGMSGTL(("AdminUsrTable", "AdminPwd value : %s 
> AdminUsrTable_get_next_data_point\n",entry->AdminPwd));

That's what I like to see - proper debugging code!
What does this output before the agent crashed?

Dave



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to