werror: replace WERR_NOMEM with WERR_NOT_ENOUGH_MEMORY in source3/libads/ldap_printer.c
authorGünther Deschner <gd@samba.org>
Thu, 3 Dec 2015 14:24:14 +0000 (15:24 +0100)
committerJeremy Allison <jra@samba.org>
Tue, 27 Sep 2016 22:04:18 +0000 (00:04 +0200)
Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/libads/ldap_printer.c

index 82c131104b9ebd9632abf4a401f0d9fa68a1a686..e610893ac4e469acf111aec9984bfbd9c8595c35 100644 (file)
@@ -298,7 +298,7 @@ WERROR get_remote_printer_publishing_data(struct rpc_pipe_client *cli,
 
        if ((asprintf(&printername, "%s\\%s", cli->srv_name_slash, printer) == -1)) {
                DEBUG(3, ("Insufficient memory\n"));
-               return WERR_NOMEM;
+               return WERR_NOT_ENOUGH_MEMORY;
        }
 
        result = rpccli_spoolss_openprinter_ex(cli, mem_ctx,