s3:libsmb: allow -U"\\administrator" to work
authorStefan Metzmacher <metze@samba.org>
Tue, 9 Jan 2018 07:55:48 +0000 (08:55 +0100)
committerStefan Metzmacher <metze@samba.org>
Tue, 27 Feb 2018 15:00:13 +0000 (16:00 +0100)
commit0b69a7a3b1eeb6121c117bc752c68844d1dff7db
tree9a5395f78db90dd8985bc5ff59fe8f5ead6b1382
parenta72353ac0207d8252fd89303dc5f7186b805cc54
s3:libsmb: allow -U"\\administrator" to work

cli_credentials_get_principal() returns NULL in that case.

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

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
(cherry picked from commit 0786a65cabb92a812cf1c692d0d26914f74a6f87)
source3/libsmb/cliconnect.c