]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
Don't handle right=%any6 as "loose" identity, but as %any
authorMartin Willi <martin@revosec.ch>
Mon, 14 Jan 2013 09:33:14 +0000 (10:33 +0100)
committerMartin Willi <martin@revosec.ch>
Mon, 14 Jan 2013 09:33:14 +0000 (10:33 +0100)
src/libcharon/plugins/stroke/stroke_config.c

index 112c32d41e3099efe417df7fceaa7620dff4fe46..9f6124dc9969bab5e13c1ca0fdfee57ad87b4f21 100644 (file)
@@ -414,7 +414,7 @@ static auth_cfg_t *build_auth_cfg(private_stroke_config_t *this,
                        ca = other_end->ca2;
                }
        }
-       if (id && *id == '%' && !streq(id, "%any"))
+       if (id && *id == '%' && !streq(id, "%any") && !streq(id, "%any6"))
        {       /* has only an effect on rightid/2 */
                loose = !local;
                id++;
@@ -1312,4 +1312,3 @@ stroke_config_t *stroke_config_create(stroke_ca_t *ca, stroke_cred_t *cred,
 
        return &this->public;
 }
-