When using CSD, the auth form could be parsed more than once per
connection. Change the accounting so that stoken_tries only gets
incremented if a tokencode is actually generated.
Signed-off-by: Kevin Cernekee <cernekee@gmail.com>
_("Server is rejecting the soft token; switching to manual entry\n"));
return -ENOENT;
}
-
- vpninfo->stoken_tries++;
return 0;
#else
return -EOPNOTSUPP;
return -EIO;
}
+ vpninfo->stoken_tries++;
opt->value = strdup(tokencode);
return opt->value ? 0 : -ENOMEM;
#else