gateway: fix overlap in success/fail IPIP tunnel init
authorFerry Huberts <ferry.huberts@pelagic.nl>
Wed, 27 Feb 2013 08:27:02 +0000 (09:27 +0100)
committerFerry Huberts <ferry.huberts@pelagic.nl>
Wed, 27 Feb 2013 08:27:02 +0000 (09:27 +0100)
Signed-off-by: Ferry Huberts <ferry.huberts@pelagic.nl>
src/gateway.c

index e2c9b91..1699c4c 100644 (file)
@@ -532,7 +532,7 @@ int olsr_init_gateways(void) {
    * initialising the IPIP server tunnel (loading the IPIP module), so we retry
    * a few times before giving up
    */
-  while (retries-- >= 0) {
+  while (retries-- > 0) {
     if (!olsr_os_init_iptunnel(server_tunnel_name())) {
       retries = 5;
       break;