ikev2: Fix handling of more than one hash-and-URL certificate payloads

This commit is contained in:
Tobias Brunner
2014-12-04 11:33:38 +01:00
parent e61841a211
commit 7459f3a5ac
+2 -2
View File
@@ -229,12 +229,12 @@ static void process_x509(cert_payload_t *payload, auth_cfg_t *auth,
return;
}
url = strdup(url);
if (first)
if (*first)
{ /* first URL is for an end entity certificate */
DBG1(DBG_IKE, "received hash-and-url for end entity cert \"%s\"",
url);
auth->add(auth, AUTH_HELPER_SUBJECT_HASH_URL, url);
first = FALSE;
*first = FALSE;
}
else
{