Read error counter must be static.

This commit is contained in:
Guus Sliepen 2010-11-02 14:23:43 +01:00
parent a91bf2dfcd
commit 66b7aea294

View file

@ -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)) {