werror: replace WERR_NOMEM with WERR_NOT_ENOUGH_MEMORY in source3/winbindd/
authorGünther Deschner <gd@samba.org>
Thu, 3 Dec 2015 14:24:18 +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/winbindd/winbindd_dual_srv.c
source3/winbindd/winbindd_irpc.c

index 0484e19584caf11b505425c4fe9b6f65a06bd8ee..aed2781bd4c150c0d7864dc55300b1fb1714a258 100644 (file)
@@ -885,7 +885,7 @@ static WERROR _winbind_LogonControl_REDISCOVER(struct pipes_struct *p,
 
        info2 = talloc_zero(p->mem_ctx, struct netr_NETLOGON_INFO_2);
        if (info2 == NULL) {
-               return WERR_NOMEM;
+               return WERR_NOT_ENOUGH_MEMORY;
        }
 
        if (domain->internal) {
@@ -925,12 +925,12 @@ check_return:
                info2->trusted_dc_name = talloc_asprintf(info2, "\\\\%s",
                                                         domain->dcname);
                if (info2->trusted_dc_name == NULL) {
-                       return WERR_NOMEM;
+                       return WERR_NOT_ENOUGH_MEMORY;
                }
        } else {
                info2->trusted_dc_name = talloc_strdup(info2, "");
                if (info2->trusted_dc_name == NULL) {
-                       return WERR_NOMEM;
+                       return WERR_NOT_ENOUGH_MEMORY;
                }
        }
        info2->tc_connection_status = check_result;
@@ -961,7 +961,7 @@ static WERROR _winbind_LogonControl_TC_QUERY(struct pipes_struct *p,
 
        info2 = talloc_zero(p->mem_ctx, struct netr_NETLOGON_INFO_2);
        if (info2 == NULL) {
-               return WERR_NOMEM;
+               return WERR_NOT_ENOUGH_MEMORY;
        }
 
        if (domain->internal) {
@@ -990,12 +990,12 @@ check_return:
                info2->trusted_dc_name = talloc_asprintf(info2, "\\\\%s",
                                                         domain->dcname);
                if (info2->trusted_dc_name == NULL) {
-                       return WERR_NOMEM;
+                       return WERR_NOT_ENOUGH_MEMORY;
                }
        } else {
                info2->trusted_dc_name = talloc_strdup(info2, "");
                if (info2->trusted_dc_name == NULL) {
-                       return WERR_NOMEM;
+                       return WERR_NOT_ENOUGH_MEMORY;
                }
        }
        info2->tc_connection_status = check_result;
@@ -1051,7 +1051,7 @@ static WERROR _winbind_LogonControl_TC_VERIFY(struct pipes_struct *p,
        info2 = talloc_zero(p->mem_ctx, struct netr_NETLOGON_INFO_2);
        if (info2 == NULL) {
                TALLOC_FREE(frame);
-               return WERR_NOMEM;
+               return WERR_NOT_ENOUGH_MEMORY;
        }
 
        if (domain->internal) {
@@ -1308,13 +1308,13 @@ verify_return:
                                                         domain->dcname);
                if (info2->trusted_dc_name == NULL) {
                        TALLOC_FREE(frame);
-                       return WERR_NOMEM;
+                       return WERR_NOT_ENOUGH_MEMORY;
                }
        } else {
                info2->trusted_dc_name = talloc_strdup(info2, "");
                if (info2->trusted_dc_name == NULL) {
                        TALLOC_FREE(frame);
-                       return WERR_NOMEM;
+                       return WERR_NOT_ENOUGH_MEMORY;
                }
        }
        info2->tc_connection_status = check_result;
@@ -1351,7 +1351,7 @@ static WERROR _winbind_LogonControl_CHANGE_PASSWORD(struct pipes_struct *p,
 
        info1 = talloc_zero(p->mem_ctx, struct netr_NETLOGON_INFO_1);
        if (info1 == NULL) {
-               return WERR_NOMEM;
+               return WERR_NOT_ENOUGH_MEMORY;
        }
 
        if (domain->internal) {
index 1f2d3adcba50b7b560eb6f14ffd07558c45217cb..9a9f75373f1dc91de57e1fb8249094f1fb4d67ec 100644 (file)
@@ -174,7 +174,7 @@ static NTSTATUS wb_irpc_LogonControl(struct irpc_message *msg,
 
                domain_name = talloc_strdup(frame, req->in.data->domain);
                if (domain_name == NULL) {
-                       req->out.result = WERR_NOMEM;
+                       req->out.result = WERR_NOT_ENOUGH_MEMORY;
                        TALLOC_FREE(frame);
                        return NT_STATUS_OK;
                }