Commit 6a2ce5d5 authored by David Woodhouse's avatar David Woodhouse

Merge branch 'master' of into HEAD

parents ce6158fc 51f8feb6
......@@ -893,7 +893,8 @@ static int cstp_can_gen_tokencode(struct openconnect_info *vpninfo,
/* Otherwise it's an OATH token of some kind. */
if (strcmp(opt->name, "secondary_password"))
if (strcmp(opt->name, "secondary_password") &&
(!form->auth_id || strcmp(form->auth_id, "challenge")))
return -EINVAL;
return can_gen_tokencode(vpninfo, form, opt);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment