talloc_tos() aborts if it can not get a stackframe
authorVolker Lendecke <vl@samba.org>
Sat, 20 Jun 2009 08:54:51 +0000 (10:54 +0200)
committerVolker Lendecke <vl@samba.org>
Sat, 20 Jun 2009 10:15:21 +0000 (12:15 +0200)
source3/passdb/passdb.c

index 51190e0bc2a26e7a1b54733bd243302cbcb8cdbb..8efd6592dd5c08ce9ae44aa8d302d8adf9bf67de 100644 (file)
@@ -655,9 +655,6 @@ NTSTATUS local_password_change(const char *user_name,
        *pp_msg_str = NULL;
 
        tosctx = talloc_tos();
-       if (!tosctx) {
-               return NT_STATUS_NO_MEMORY;
-       }
 
        sam_pass = samu_new(tosctx);
        if (!sam_pass) {