snmp_close Segmentation Fault

Jonathan Shan <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <Pine.GSO.4.60.0607171553500.22159@liman1a>
Hello all,

Why does my program complain about Segmentation Fault after a snmp_close 
function?

snmp_close function runs successfully, then after the first two print 
functions where status = STAT_SUCCESS, it generates an error message.

Inside the status switch, I have some code where the hostname and the oid 
is copied into a dynamic array. This causes the Segmentation 
Fault but I do not know why. The copy code does not change the parameter to the 
snmp_close function.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.