From: Martin Willi Date: Mon, 14 Jan 2013 09:33:14 +0000 (+0100) Subject: Don't handle right=%any6 as "loose" identity, but as %any X-Git-Tag: 5.0.2dr4~5 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c4a49008e899fdddded5fdac9fbdaf60836ba8ab;p=thirdparty%2Fstrongswan.git Don't handle right=%any6 as "loose" identity, but as %any --- diff --git a/src/libcharon/plugins/stroke/stroke_config.c b/src/libcharon/plugins/stroke/stroke_config.c index 112c32d41e..9f6124dc99 100644 --- a/src/libcharon/plugins/stroke/stroke_config.c +++ b/src/libcharon/plugins/stroke/stroke_config.c @@ -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; } -