gethostbyname() and valgrind

Posted by Samantha on Stack Overflow See other posts from Stack Overflow or by Samantha
Published on 2010-03-24T10:00:02Z Indexed on 2010/03/24 10:03 UTC
Read the original article Hit count: 516

Filed under:
|
|

Hello, I keep getting this error whenever I call gethostbyname() in my C code.

==7983== Invalid read of size 1
==7983==    at 0x412AB2C: ____strtoul_l_internal (strtol_l.c:298)
==7983==    by 0x412A46F: strtoul (strtol.c:110)
==7983==    by 0x41D427E: inet_aton (inet_addr.c:143)
==7983==    by 0x41D8FF3: __nss_hostname_digits_dots (digits_dots.c:144)
==7983==    by 0x41DD0F9: gethostbyname (getXXbyYY.c:109)
==7983==    by 0x804BE6F: connexion_function (in  ***************)
==7983==    by 0x8049A8F: main (in ***************)

Any ideas ? Thanks,

© Stack Overflow or respective owner

Related posts about gethostbyname

Related posts about c