s3: winbind: Prevent null ptr access by returning error if no creds available
authorNoel Power <noel.power@suse.com>
Thu, 22 Oct 2015 11:37:17 +0000 (12:37 +0100)
committerJeremy Allison <jra@samba.org>
Wed, 4 Nov 2015 21:15:24 +0000 (22:15 +0100)
commite8fab02773892812f563eea7098847618df76e1b
tree2edc3138f3b7caf8447de5acac59863a3ec437af
parentaa3cc0b459124c66de0aad8ff41908e1bf261222
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>
source3/winbindd/winbindd_pam.c