workaround for parsing IPv6 PSKs requires extract_last_token()
authorAndreas Steffen <andreas.steffen@strongswan.org>
Tue, 1 Apr 2008 20:40:29 +0000 (20:40 -0000)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Tue, 1 Apr 2008 20:40:29 +0000 (20:40 -0000)
src/charon/plugins/stroke/stroke_cred.c

index 036bd38..9a3d468 100644 (file)
@@ -635,7 +635,7 @@ static void load_secrets(private_stroke_cred_t *this)
                {
                        continue;
                }
-               if (!extract_token(&ids, ':', &line))
+               if (!extract_last_token(&ids, ':', &line))
                {
                        DBG1(DBG_CFG, "line %d: missing ':' separator", line_nr);
                        goto error;