From fd465d1261c17f08fe96a95f5eca4030c489be31 Mon Sep 17 00:00:00 2001 From: Remi Mollon Date: Tue, 24 Jan 2012 17:42:49 +0100 Subject: [PATCH] add comment --- pam_yubico.c | 1 + 1 file changed, 1 insertion(+) diff --git a/pam_yubico.c b/pam_yubico.c index e0deb43..aa59d17 100644 --- a/pam_yubico.c +++ b/pam_yubico.c @@ -381,6 +381,7 @@ authorize_user_token_ldap (struct cfg *cfg, /* Compare each value for the attribute against the token id. */ for (i = 0; vals[i] != NULL; i++) { + /* Only values containing this prefix are considered. */ if ((!cfg->yubi_prefix || !strncmp (cfg->yubi_prefix, vals[i]->bv_val, yubi_prefix_len))) { if(!strncmp (token_id, vals[i]->bv_val + yubi_prefix_len, strlen (token_id)))