s3: rpcclient: Prevent null ptr access by returning error if no creds available
authorNoel Power <noel.power@suse.com>
Mon, 2 Nov 2015 09:59:12 +0000 (09:59 +0000)
committerJeremy Allison <jra@samba.org>
Wed, 4 Nov 2015 21:15:24 +0000 (22:15 +0100)
commit89940f39c6d2db03b3a468942d686e762f126f9f
tree700e5e48527042cac7c1ef20b898f47cfc7f71d0
parente8fab02773892812f563eea7098847618df76e1b
s3: rpcclient: Prevent null ptr access by returning error if no creds available

Prevent 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/rpcclient/cmd_netlogon.c