mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-01-30 08:03:49 +00:00
Fixed one (of possibly many) bugs introduced into simple server mode by the new overlay mode code.
This commit is contained in:
parent
bd16fbbf5b
commit
262346a182
2
client.c
2
client.c
@ -322,7 +322,7 @@ int getReplyPackets(int method,int peer,int batchP,struct response_set *response
|
||||
socklen_t recvaddrlen=sizeof(struct sockaddr);
|
||||
struct pollfd fds;
|
||||
|
||||
bzero((void *)recvaddr,sizeof(struct sockaddr));
|
||||
if (recvaddr) bzero((void *)recvaddr,sizeof(struct sockaddr));
|
||||
fds.fd=sock; fds.events=POLLIN; fds.revents=0;
|
||||
|
||||
while (poll(&fds,1,10 /* wait for 10ms at a time */)==0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user