diff --git a/source4/dns_server/dns_crypto.c b/source4/dns_server/dns_crypto.c index 462b7ff8ae4..0be9b8209aa 100644 --- a/source4/dns_server/dns_crypto.c +++ b/source4/dns_server/dns_crypto.c @@ -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); diff --git a/source4/dns_server/dns_server.c b/source4/dns_server/dns_server.c index db7c2f2d5ba..830e0703336 100644 --- a/source4/dns_server/dns_server.c +++ b/source4/dns_server/dns_server.c @@ -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); }