Read error counter must be static.
This commit is contained in:
parent
a91bf2dfcd
commit
66b7aea294
1 changed files with 1 additions and 1 deletions
|
@ -280,7 +280,7 @@ static void check_network_activity(fd_set * readset, fd_set * writeset) {
|
|||
int result, i;
|
||||
socklen_t len = sizeof(result);
|
||||
vpn_packet_t packet;
|
||||
int errors = 0;
|
||||
static int errors = 0;
|
||||
|
||||
/* check input from kernel */
|
||||
if(device_fd >= 0 && FD_ISSET(device_fd, readset)) {
|
||||
|
|
Loading…
Reference in a new issue