]> git.meshlink.io Git - meshlink/commitdiff
Fixed typos.
authorGuus Sliepen <guus@tinc-vpn.org>
Sun, 14 May 2000 13:06:52 +0000 (13:06 +0000)
committerGuus Sliepen <guus@tinc-vpn.org>
Sun, 14 May 2000 13:06:52 +0000 (13:06 +0000)
src/net.c

index b6007b4871a4781341ea51ad1038df735640e797..6de95b5f0c87ebb1ed7778c42856fa0c7499f302 100644 (file)
--- a/src/net.c
+++ b/src/net.c
@@ -851,21 +851,22 @@ cp
       if(p->status.active && p->status.meta)
        {
           if(p->last_ping_time + timeout < now)
-            if(p->status.pinged && !p->status.got_pong)
-              {
-               syslog(LOG_INFO, "%s (" IP_ADDR_S ") didn't respond to ping",
-                      p->hostname, IP_ADDR_V(p->vpn_ip));
-               p->status.timeout = 1;
-               terminate_connection(p);
-              }
-            else if(p->want_ping)
-              {
-                send_ping(p);
-                p->last_ping_time = now;
-                p->status.pinged = 1;
-                p->status.get_pong = 0;
-              }
-          }
+            {
+              if(p->status.pinged && !p->status.got_pong)
+                {
+                 syslog(LOG_INFO, "%s (" IP_ADDR_S ") didn't respond to ping",
+                        p->hostname, IP_ADDR_V(p->vpn_ip));
+                 p->status.timeout = 1;
+                 terminate_connection(p);
+                }
+              else if(p->want_ping)
+                {
+                  send_ping(p);
+                  p->last_ping_time = now;
+                  p->status.pinged = 1;
+                  p->status.got_pong = 0;
+                }
+            }
        }
     }
 cp