[Libevent-users] [Patch] http server high port/getaddrinfo bug
Niels Provos
provos at citi.umich.edu
Thu Jan 18 01:29:11 EST 2007
Thank you. Especially for the addition to the regression test.
Both patches submitted to trunk.
Niels.
On 1/12/07, Philip Lewis <philip at esper-digital.net> wrote:
> make_socket() in http.c takes the port as a short instead of an
> unsigned short, so ports higher than 32767 become a negative number in
> the string given to getaddrinfo(), which fails.
>
> Also, getaddrinfo() uses the return code instead of errno, so it fails
> with "[warn] getaddrinfo: Success". getnameinfo() also returns errors
> this way.
>
> Patch fixes both.
>
>
> _______________________________________________
> Libevent-users mailing list
> Libevent-users at monkey.org
> http://monkey.org/mailman/listinfo/libevent-users
>
>
>
>
More information about the Libevent-users
mailing list