s3: smbpasswd - fix crashes on invalid input.
commit5b9e5793dfb6ff7111f4096d5c290af634f0714c
authorJeremy Allison <jra@samba.org>
Thu, 12 Dec 2013 17:37:25 +0000 (12 09:37 -0800)
committerKarolin Seeger <kseeger@samba.org>
Sat, 28 Dec 2013 20:26:03 +0000 (28 21:26 +0100)
tree10ef1ea0c13c84a25751e43d0aec160a2969eb83
parent64302c156019647828553598917136ae509ac315
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

(cherry picked from commit ef5a3bedab74420baf0c653cf8e304fe6c2a13b4)
source3/utils/net.c
source3/utils/passwd_util.c
source3/utils/smbpasswd.c