[network-manager-openvpn: 1/10] properties: fix parsing of KEY_DIRECTION_TAG line to jump to next line



commit ab05b88fe2883ed39b88670d8c8806951a7e942b
Author: Thomas Haller <thaller redhat com>
Date:   Sat Jan 23 17:24:19 2016 +0100

    properties: fix parsing of KEY_DIRECTION_TAG line to jump to next line
    
    Fixes: 91d12ffd3fd8511314631c20dc898eb3a1627ae0

 properties/import-export.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/properties/import-export.c b/properties/import-export.c
index 758718a..02b18f8 100644
--- a/properties/import-export.c
+++ b/properties/import-export.c
@@ -593,8 +593,10 @@ do_import (const char *path, const char *contents, GError **error)
                        continue;
                }
 
-               if (!strncmp(*line, KEY_DIRECTION_TAG, strlen (KEY_DIRECTION_TAG)))
+               if (!strncmp(*line, KEY_DIRECTION_TAG, strlen (KEY_DIRECTION_TAG))) {
                        last_seen_key_direction = *line + strlen (KEY_DIRECTION_TAG);
+                       continue;
+               }
 
                if (!strncmp (*line, DEV_TAG, strlen (DEV_TAG))) {
                        items = get_args (*line + strlen (DEV_TAG), &nitems);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]