s3: libwbclient: Don't break out of loop too soon - find all parameters.
authorJeremy Allison <jra@samba.org>
Tue, 8 Jul 2014 23:36:30 +0000 (16:36 -0700)
committerKarolin Seeger <kseeger@samba.org>
Tue, 15 Jul 2014 10:23:18 +0000 (12:23 +0200)
Fix bug #10692: wbcCredentialCache fails if challenge_blob is not first

https://bugzilla.samba.org/show_bug.cgi?id=10692

Signed-off-by: Jeremy Allison <jra@samba.org>
nsswitch/libwbclient/wbc_pam.c

index f183cc61b1e41fb64505444b82f1d27be2985cc1..6e9838d226e21f2f955860e45a3ff49f1a4738d6 100644 (file)
@@ -1228,11 +1228,9 @@ wbcErr wbcCredentialCache(struct wbcCredentialCacheParams *params,
        for (i=0; i<params->num_blobs; i++) {
                if (strcasecmp(params->blobs[i].name, "initial_blob") == 0) {
                        initial_blob = &params->blobs[i];
-                       break;
                }
                if (strcasecmp(params->blobs[i].name, "challenge_blob") == 0) {
                        challenge_blob = &params->blobs[i];
-                       break;
                }
        }