When I use read_config_store_data( ASN_OCTET_STR, ........ ) to store a table 
column entry to a persistent conf file I get a "run fault". 

writing ASN_UNSIGNED vars are all successful and I can store and read from the 
.conf file without a problem.

so, I assumed it must be the way I am passing my octet string.

unsigned char myString[255];
long myStringLen;

when debugging I see the following value prior to executing the 
read_config_store_data() line :

myString displays as : mystringvalue
myStringLen as : 13

but when I execute the following line, it goes pooooof with a run fault and a 
blank conf file.

cptr = read_config_store_data (ASN_OCTET_STR, cptr, &myString, 
(size_t*)(&myStringLen) );

&myString being the (u_char **) dataptr that the function 
read_config_store_data() ultimately acts upon.

anyone seen anything similar or know what is going wrong?

thanks

Paul Davies



The information contained within this e-mail and any files attached to this 
e-mail is confidential and in addition may include commercially sensitive 
information. The contents of this e-mail are for the intended recipient only 
and therefore if you wish to disclose the information contained within this 
e-mail or attached files, please contact the sender prior to any such 
disclosure. 

If you are not the intended recipient, any disclosure, copying or distribution 
is prohibited. Please also contact the sender and inform them of the error and 
delete the e-mail, including any attached files from your system.

www.eadsdsuk.com 




-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP.  Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
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

Reply via email to