iamgreaser / iceball

Open-source rewrite of the VOXLAP version of Ace of Spades.
http://iceball.build
GNU General Public License v3.0
114 stars 32 forks source link

Crash in raw UDP and likely raw TCP mode when doing freeaddrinfo #86

Closed iamgreaser closed 9 years ago

iamgreaser commented 11 years ago

Happened on the main server today.

File: src/lua_udp.h, line 155:

    getaddrinfo(host, port_ch, &hints, &res);

    length = lua_strlen(L, 2);
    sent = sendto(sockfd, data, length, 0, res->ai_addr, res->ai_addrlen);
    freeaddrinfo(res); <-- 155
iamgreaser commented 10 years ago

This also happened on line 154 which is the sendto() line.

I've attempted to fix this in 0.1.2-8. If the server stays up long enough then I think we can close this issue.

iamgreaser commented 9 years ago

Time to clean this up.