Fixed variable to right scope
This commit is contained in:
parent
e51f4e8bc1
commit
783c166b75
1 changed files with 2 additions and 1 deletions
|
@ -406,8 +406,9 @@ static SOCKET_STATE send_file(buffer* buf)
|
|||
poll_res = poll(&fd, 1, 600000);
|
||||
} while(poll_res == -1 && errno == EINTR);
|
||||
|
||||
SOCKET_STATE result;
|
||||
if (poll_res > 0)
|
||||
SOCKET_STATE result = send_buffer(buf->sock, buffer, 4);
|
||||
result = send_buffer(buf->sock, buffer, 4);
|
||||
else
|
||||
result = SOCKET_ERRORED;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue