s3: Remove a scary error message -- talloc_move can not fail :-)
authorVolker Lendecke <vl@samba.org>
Sun, 4 Oct 2009 13:19:19 +0000 (15:19 +0200)
committerGünther Deschner <gd@samba.org>
Mon, 5 Oct 2009 10:14:08 +0000 (12:14 +0200)
Signed-off-by: Günther Deschner <gd@samba.org>
source3/rpc_client/cli_pipe.c

index 34b861690704c4edf3a54349218a866c422501be..dc4dfbd3b27cefc40b29f418e5d4ab8057424fb1 100644 (file)
@@ -3940,11 +3940,6 @@ NTSTATUS cli_rpc_pipe_open_schannel_with_key(struct cli_state *cli,
         * in - reference them in
         */
        result->dc = talloc_move(result, pdc);
-       if (result->dc == NULL) {
-               DEBUG(0, ("talloc reference failed\n"));
-               TALLOC_FREE(result);
-               return NT_STATUS_NO_MEMORY;
-       }
 
        DEBUG(10,("cli_rpc_pipe_open_schannel_with_key: opened pipe %s to machine %s "
                  "for domain %s and bound using schannel.\n",