Skip to content

Commit

Permalink
Merge branch 'master' of gitlab.com:j.l-w/openconnect into HEAD
Browse files Browse the repository at this point in the history
  • Loading branch information
dwmw2 committed Oct 3, 2018
2 parents ce6158f + 51f8feb commit 6a2ce5d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion auth.c
Expand Up @@ -893,7 +893,8 @@ static int cstp_can_gen_tokencode(struct openconnect_info *vpninfo,
}
#endif
/* 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);
Expand Down

0 comments on commit 6a2ce5d

Please sign in to comment.