Correctly initialized the addr size variable used in recvfrom
This commit is contained in:
parent
31e585aca8
commit
ad23e0afd4
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue