Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#142 Gethostbyname error

linux
open
nobody
Crash Bug (39)
5
2005-10-27
2005-10-27
Harley Laue
No

There is lack of checking to see if gethostbyname
succeeds or not, if it has trouble getting the IP from
that it crashes. A work around is to actually check to
see if it got something usefull. The problem is in
src/linux/ztcp.c. I'm going to submit a patch which
prints 127.0.0.1 if it finds an error, otherwise it
does the normal method. I don't make many patches so I
just did a "diff -u ztcp.c.old ztcp.c" from the
src/linux directory.

I also debated where I should submit this or not since
in the WIP netplay is dead.

Discussion

  • Harley Laue
    Harley Laue
    2005-10-27

    ztcp.c patch against 1.42

     
    Attachments