Infact, ignore this, im not thinking today :)

Sorry for totally stupid post
/Cole

----- Original Message -----
From: "Cole" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 20, 2005 12:36 PM
Subject: FD_ZERO problem


> Hi
>
> Ive been looking at nbtscan, the 1.5.1 version, and it seems to core, with a 
> segmentation fault.
> I traced the problem down to a FD_ZERO(fdsr).
>
> I was wondering is there any like checking that can be done before issuing 
> that command. Its part of a while loop, inside the
> program, where it runs fine, till the last loop, im guessing maybe its maybe 
> doing an extra loop where it shouldnt, but the while
> loop is
> while( (select(sock+1, fdsr, fdsw, NULL, &select_timeout) ) > 0 ) {
>
> So I dont think the while is giving a false positive, but this isnt my code, 
> I havent had time to check it all out, but I was just
> wondering if there are any checks that can be done to the fd_set * fdsr 
> pointer before issuing a FD_ZERO?
>
> Regards
> /Cole
>
> _______________________________________________
> freebsd-hackers@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"

_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to