werror: replace WERR_NOMEM with WERR_NOT_ENOUGH_MEMORY in source3/libnet/libnet_join.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/libnet/libnet_join.c

index bbbd06e1187b7f542201d83f6d936650d051df08..a95dc3dea71cb70c326d88c62c1e48362459c5e3 100644 (file)
@@ -2138,7 +2138,7 @@ static WERROR libnet_join_pre_processing(TALLOC_CTX *mem_ctx,
                                       &admin_domain,
                                       &admin_account);
                if (!ok) {
-                       return WERR_NOMEM;
+                       return WERR_NOT_ENOUGH_MEMORY;
                }
 
                if (admin_domain != NULL) {
@@ -2266,7 +2266,7 @@ WERROR libnet_init_JoinCtx(TALLOC_CTX *mem_ctx,
 
        ctx = talloc_zero(mem_ctx, struct libnet_JoinCtx);
        if (!ctx) {
-               return WERR_NOMEM;
+               return WERR_NOT_ENOUGH_MEMORY;
        }
 
        talloc_set_destructor(ctx, libnet_destroy_JoinCtx);
@@ -2301,7 +2301,7 @@ WERROR libnet_init_UnjoinCtx(TALLOC_CTX *mem_ctx,
 
        ctx = talloc_zero(mem_ctx, struct libnet_UnjoinCtx);
        if (!ctx) {
-               return WERR_NOMEM;
+               return WERR_NOT_ENOUGH_MEMORY;
        }
 
        talloc_set_destructor(ctx, libnet_destroy_UnjoinCtx);
@@ -2831,7 +2831,7 @@ static WERROR libnet_unjoin_pre_processing(TALLOC_CTX *mem_ctx,
                                       &admin_domain,
                                       &admin_account);
                if (!ok) {
-                       return WERR_NOMEM;
+                       return WERR_NOT_ENOUGH_MEMORY;
                }
 
                if (admin_domain != NULL) {