libwbclient: reject unknown named blobs in wbcCredentialCache()
authorStefan Metzmacher <metze@samba.org>
Thu, 10 Jul 2014 03:28:36 +0000 (05:28 +0200)
committerJeremy Allison <jra@samba.org>
Thu, 10 Jul 2014 20:30:45 +0000 (22:30 +0200)
Bug: https://bugzilla.samba.org/show_bug.cgi?id=10692

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Thu Jul 10 22:30:45 CEST 2014 on sn-devel-104

nsswitch/libwbclient/wbc_pam.c

index 11b59f6f30ce76b7d2acb4c43a77f80e88a76cac..a16de971f3d955097ad4bbea332828218211c0d9 100644 (file)
@@ -1224,6 +1224,8 @@ wbcErr wbcCredentialCache(struct wbcCredentialCacheParams *params,
                        challenge_blob = &params->blobs[i];
                        continue;
                }
+               status = WBC_ERR_INVALID_PARAM;
+               goto fail;
        }
 
        if (params->domain_name != NULL) {