Hi Jorge, on Mon, 3 Feb 2003 08:39:43 -0300 (CLST) Jorge Arellano Cid <jcid@softhome.net> wrote:
Melvin,
Jorge Arellano Cid <jcid@softhome.net> wrote:
In the meanwhile, I [...] also initialized "addrsize" as Melvin pointed out. AFAIU this doesn't affect those using GNU/Linux.
The uninitialized "addrsize" affected my system wich is a GNU/Linux 2.4.19 (+perfctr patch) using glibc 2.2.5. The compiler used is gcc 2.95.4. This is an Intel platform.
Quite interesting!
Yes, especially that we both have the same glibc and a GNU/Linux system, but only me has a problem with uninitialized addrlen.
My `info libc` didn't mention an explicit need to do that (except for getsockopt and getsockname); BUT the example initialized the one for accept!!!
Well this isn't too surprising as the same source explains two equivalent ways to calculate the size of the address, and when tested they are different! :)
Should we report that?
Cheers Jorge.-
PS: I'm also using glibc-2.2.5, and gcc-2.95.3.
Waliki (Bolivian: See you later) -- Melvin Hadasht