return NT_STATUS_NO_MEMORY istead of NT_STATUS_OK if we are out of memory.
authorSimo Sorce <idra@samba.org>
Sat, 29 Sep 2001 12:26:40 +0000 (12:26 +0000)
committerSimo Sorce <idra@samba.org>
Sat, 29 Sep 2001 12:26:40 +0000 (12:26 +0000)
(This used to be commit d38bc1dceccaa4cbdaf3ac4d561225229161714a)

source3/rpcclient/rpcclient.c

index 186cc130d48df5db457673c6cc33d8c2d3ce4555..310acd3c32a92e7e80266ca35fc5a3d311f9be4d 100644 (file)
@@ -432,7 +432,7 @@ static NTSTATUS do_cmd(struct cli_state *cli, struct cmd_set *cmd_entry, char *c
 
                if (!argv) {
                        fprintf(stderr, "out of memory\n");
-                       return NT_STATUS_OK;
+                       return NT_STATUS_NO_MEMORY;
                }
                                        
                p = cmd;