Correctly initialized the addr size variable used in recvfrom

This commit is contained in:
Nicolas Van Wambeke 2016-06-19 17:20:51 +02:00
parent 31e585aca8
commit ad23e0afd4

View file

@ -25,7 +25,8 @@ int count = 0;
int reverse = 1; int reverse = 1;
struct sockaddr_in local_addr, remote_addr, tmp_addr; struct sockaddr_in local_addr, remote_addr, tmp_addr;
int local_size, remote_size, tmp_addr_size; socklen_t local_size, remote_size;
socklen_t tmp_addr_size = sizeof(struct sockaddr);
app_buffer* app_buffer_first = NULL; app_buffer* app_buffer_first = NULL;
app_buffer* app_buffer_last = NULL; app_buffer* app_buffer_last = NULL;