From 66b7aea294896a99df289231143a506b422b994c Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Tue, 2 Nov 2010 14:23:43 +0100 Subject: [PATCH] Read error counter must be static. --- src/net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/net.c b/src/net.c index bed779a..08e3cad 100644 --- a/src/net.c +++ b/src/net.c @@ -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)) { -- 2.25.1