mirror of
https://github.com/Yubico/yubico-pam.git
synced 2025-02-21 06:54:15 +01:00
fixup strtok of url templates
This commit is contained in:
parent
8f6717b13e
commit
431e96033d
@ -896,9 +896,11 @@ pam_sm_authenticate (pam_handle_t * pamh,
|
||||
{
|
||||
char *saveptr = NULL;
|
||||
char *part = NULL;
|
||||
char *tmpurl = cfg->urllist;
|
||||
|
||||
while ((part = strtok_r(cfg->urllist, ";", &saveptr)))
|
||||
while ((part = strtok_r(tmpurl, ";", &saveptr)))
|
||||
{
|
||||
tmpurl = NULL;
|
||||
if(templates == 10)
|
||||
{
|
||||
DBG (("maximum 10 urls supported in list."));
|
||||
|
Loading…
x
Reference in New Issue
Block a user