s3: smbpasswd - fix crashes on invalid input.
commitef5a3bedab74420baf0c653cf8e304fe6c2a13b4
authorJeremy Allison <jra@samba.org>
Thu, 12 Dec 2013 17:37:25 +0000 (12 09:37 -0800)
committerVolker Lendecke <vl@samba.org>
Mon, 16 Dec 2013 14:17:58 +0000 (16 15:17 +0100)
tree5b76c9b7161a13af754deaa9cdf137b6162ab5f8
parent5ac5e335e0596583e11a750d31f133da3fad8fd4
s3: smbpasswd - fix crashes on invalid input.

get_pass can return NULL on error. Ensure that
this is always the case and fix all callers to cope
(some already did).

Reported by Joonas Kuorilehto <joneskoo@codenomicon.com>

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

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Mon Dec 16 15:17:58 CET 2013 on sn-devel-104
source3/utils/net.c
source3/utils/passwd_util.c
source3/utils/smbpasswd.c