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



commit 22e42a7fa7230c8f231aad05f31530d6e0f94ff8
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
    (cherry picked from commit ab05b88fe2883ed39b88670d8c8806951a7e942b)

 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 76b6972..9a2c921 100644
--- a/properties/import-export.c
+++ b/properties/import-export.c
@@ -501,8 +501,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]