pluto: Missing flushline call added when reading ipsec.secrets.
authorTobias Brunner <tobias@strongswan.org>
Fri, 14 Oct 2011 16:38:18 +0000 (18:38 +0200)
committerTobias Brunner <tobias@strongswan.org>
Fri, 14 Oct 2011 16:38:18 +0000 (18:38 +0200)
src/pluto/keys.c

index dfdc6bb..a204d86 100644 (file)
@@ -1076,7 +1076,7 @@ static void process_secrets_file(const char *file_pat, int whackfd)
                        if (lexopen(&pos, *fnp, FALSE))
                        {
                                plog("loading secrets from \"%s\"", *fnp);
-                               (void) flushline("file starts with indentation (continuation notation)");
+                               flushline("file starts with indentation (continuation notation)");
                                process_secret_records(whackfd);
                                lexclose();
                        }
@@ -1089,6 +1089,7 @@ static void process_secrets_file(const char *file_pat, int whackfd)
        if (lexopen(&pos, file_pat, FALSE))
        {
                plog("loading secrets from \"%s\"", file_pat);
+               flushline("file starts with indentation (continuation notation)");
                process_secret_records(whackfd);
                lexclose();
        }