[network-manager-openvpn: 2/5] properties: allow comment lines inside blobs for do_import()/handle_blob_item()



commit a39458c41e1798471cf4f3236c01ce3716046145
Author: Matthias Berndt <matthias berndt riskident com>
Date:   Fri Jan 22 13:52:38 2016 +0100

    properties: allow comment lines inside blobs for do_import()/handle_blob_item()
    
    Fixes: 887c44b48171149312c45f6406077d34487c8e66

 properties/import-export.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/properties/import-export.c b/properties/import-export.c
index 12897d4..8b39d14 100644
--- a/properties/import-export.c
+++ b/properties/import-export.c
@@ -222,7 +222,7 @@ handle_blob_item (const char ***line,
                        p++; \
                        if (!*p) \
                                goto finish; \
-               } while (!*p[0]); \
+               } while (*p[0] == '\0' || *p[0] == '#' || *p[0] == ';'); \
        } G_STMT_END
 
        if (!strcmp (key, NM_OPENVPN_KEY_CA)) {


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