1
0
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:
Klas Lindfors 2014-03-26 11:00:29 +01:00
parent 8f6717b13e
commit 431e96033d

View File

@ -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."));