s3:lib: Do not segfault if username is NULL
authorAndreas Schneider <asn@samba.org>
Fri, 17 Feb 2017 09:08:17 +0000 (10:08 +0100)
committerJeremy Allison <jra@samba.org>
Thu, 23 Feb 2017 02:18:10 +0000 (03:18 +0100)
commit9297ac44f7e0455bb74ee77ad8b68f2e8c4a070d
treec623eedbcacf0f46e5a41499e3c3c67da8301e9c
parent13690569ee5893e3dbd96f2b28a41a35e3da42ff
s3:lib: Do not segfault if username is NULL

Found by covscan.

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

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/lib/util_cmdline.c