werror: replace WERR_INVALID_PARAM with WERR_INVALID_PARAMETER in source4/dns_server/
authorGünther Deschner <gd@samba.org>
Thu, 3 Dec 2015 14:24:26 +0000 (15:24 +0100)
committerJeremy Allison <jra@samba.org>
Tue, 27 Sep 2016 22:04:23 +0000 (00:04 +0200)
Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source4/dns_server/dns_crypto.c
source4/dns_server/dns_server.c

index 462b7ff8ae413c21f98404108e831d50d108f0b1..0be9b8209aa2f85926609e7bc7a2b71a2ad12527 100644 (file)
@@ -311,11 +311,11 @@ static WERROR dns_tsig_compute_mac(TALLOC_CTX *mem_ctx,
 
        buffer_len += packet_blob.length;
        if (buffer_len < packet_blob.length) {
-               return WERR_INVALID_PARAM;
+               return WERR_INVALID_PARAMETER;
        }
        buffer_len += tsig_blob.length;
        if (buffer_len < tsig_blob.length) {
-               return WERR_INVALID_PARAM;
+               return WERR_INVALID_PARAMETER;
        }
 
        buffer = talloc_zero_array(mem_ctx, uint8_t, buffer_len);
index db7c2f2d5ba05d4f6fc47b67f7e3effeb031f0b8..830e0703336548f1abd7405f789c206a2314a868 100644 (file)
@@ -134,7 +134,7 @@ static struct tevent_req *dns_process_send(TALLOC_CTX *mem_ctx,
        state->dns = dns;
 
        if (in->length < 12) {
-               tevent_req_werror(req, WERR_INVALID_PARAM);
+               tevent_req_werror(req, WERR_INVALID_PARAMETER);
                return tevent_req_post(req, ev);
        }
        dump_data_dbgc(DBGC_DNS, 8, in->data, in->length);
@@ -154,7 +154,7 @@ static struct tevent_req *dns_process_send(TALLOC_CTX *mem_ctx,
 
        if (state->in_packet.operation & DNS_FLAG_REPLY) {
                DEBUG(1, ("Won't reply to replies.\n"));
-               tevent_req_werror(req, WERR_INVALID_PARAM);
+               tevent_req_werror(req, WERR_INVALID_PARAMETER);
                return tevent_req_post(req, ev);
        }