On Sat, 28 Oct 2006 19:56:33 +0200
efphe wrote:
>
> Replace the entire function with:
>
> ########## BEGIN CODE ########################################
> int ns_general_send(char *msg,int msglen,char *answer,int anslen) {
> int res,i;
> char buf[2000];
>
> for (i=0; i<_andns_ns_count_;i++) {
> res=ai_send_recv_close(_andns_ns_[i],msg,msglen,
> answer,anslen,0,0,ANDNS_TIMEOUT);
> if (res<0) {
> if (res==-1) {
> err_ret(ERR_SKTCON,-1);}
> else if (res==-2) {
> err_ret(ERR_SKTSEN,-1);}
> else if (res==-3) {
> err_ret(ERR_SKTREC,-1);}
> }
> else
> return res;
>
> }
> return 0;
> }
> ######### END CODE ############################
Yes,
i'm speaking with myself Oo
Debugging the debugging
remove the declaration:
char buf[2000];
from the function ns_general_send()
_______________________________________________
Netsukuku mailing list
[email protected]
http://lists.dyne.org/mailman/listinfo/netsukuku