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

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

index 199e5f12ce1b87142cb50462972cbf6f8353d017..a47931d63b691d5f37fc8f39eac7662417a15cc0 100644 (file)
@@ -30,7 +30,7 @@ static WERROR rcinit_stop( const char *service, struct SERVICE_STATUS *status )
 
        if (asprintf(&command, "%s/%s/%s stop",
                                get_dyn_MODULESDIR(), SVCCTL_SCRIPT_DIR, service) < 0) {
-               return WERR_NOMEM;
+               return WERR_NOT_ENOUGH_MEMORY;
        }
 
        /* we've already performed the access check when the service was opened */
@@ -64,7 +64,7 @@ static WERROR rcinit_start( const char *service )
 
        if (asprintf(&command, "%s/%s/%s start",
                                get_dyn_MODULESDIR(), SVCCTL_SCRIPT_DIR, service) < 0) {
-               return WERR_NOMEM;
+               return WERR_NOT_ENOUGH_MEMORY;
        }
 
        /* we've already performed the access check when the service was opened */
@@ -91,7 +91,7 @@ static WERROR rcinit_status( const char *service, struct SERVICE_STATUS *status
 
        if (asprintf(&command, "%s/%s/%s status",
                                get_dyn_MODULESDIR(), SVCCTL_SCRIPT_DIR, service) < 0) {
-               return WERR_NOMEM;
+               return WERR_NOT_ENOUGH_MEMORY;
        }
 
        /* we've already performed the access check when the service was opened */
index 8e8fa21edc7f222e0233524b183050e21c8c5cc3..7d7871d888466180944651039b71886eb50c25df 100644 (file)
@@ -203,7 +203,7 @@ bool svcctl_set_secdesc(struct messaging_context *msg_ctx,
 
                wkey.name = talloc_asprintf(tmp_ctx, "%s\\Security", key);
                if (wkey.name == NULL) {
-                       result = WERR_NOMEM;
+                       result = WERR_NOT_ENOUGH_MEMORY;
                        goto done;
                }