s3: winbind: Prevent null ptr access by returning error if no creds available
commit92cc4e07f9558b2d4b7510f9ed4b769c9f467941
authorNoel Power <noel.power@suse.com>
Thu, 22 Oct 2015 11:37:17 +0000 (22 12:37 +0100)
committerKarolin Seeger <kseeger@samba.org>
Mon, 16 Nov 2015 11:55:13 +0000 (16 12:55 +0100)
treebc9d5d69912b0776b8ed5055e96df651fd195f10
parentd9afa70503d93460da27c887241fd6a59ec49f0a
s3: winbind: Prevent null ptr access by returning error if no creds available

Prevent rpccli_netlogon_network_logon/rpccli_netlogon_password_logon
being called with 'NULL' credentials

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

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
(cherry picked from commit e8fab02773892812f563eea7098847618df76e1b)

Autobuild-User(v4-2-test): Karolin Seeger <kseeger@samba.org>
Autobuild-Date(v4-2-test): Mon Nov 16 12:55:13 CET 2015 on sn-devel-104
source3/winbindd/winbindd_pam.c