1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-08 05:57:51 +03:00

werror: replace WERR_INVALID_PARAM with WERR_INVALID_PARAMETER in source4/dns_server/

Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
Günther Deschner 2015-12-03 15:24:26 +01:00 committed by Jeremy Allison
parent a15159f5a5
commit 8416a97b30
2 changed files with 4 additions and 4 deletions

View File

@ -311,11 +311,11 @@ static WERROR dns_tsig_compute_mac(TALLOC_CTX *mem_ctx,
buffer_len += packet_blob.length; buffer_len += packet_blob.length;
if (buffer_len < packet_blob.length) { if (buffer_len < packet_blob.length) {
return WERR_INVALID_PARAM; return WERR_INVALID_PARAMETER;
} }
buffer_len += tsig_blob.length; buffer_len += tsig_blob.length;
if (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); buffer = talloc_zero_array(mem_ctx, uint8_t, buffer_len);

View File

@ -134,7 +134,7 @@ static struct tevent_req *dns_process_send(TALLOC_CTX *mem_ctx,
state->dns = dns; state->dns = dns;
if (in->length < 12) { if (in->length < 12) {
tevent_req_werror(req, WERR_INVALID_PARAM); tevent_req_werror(req, WERR_INVALID_PARAMETER);
return tevent_req_post(req, ev); return tevent_req_post(req, ev);
} }
dump_data_dbgc(DBGC_DNS, 8, in->data, in->length); 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) { if (state->in_packet.operation & DNS_FLAG_REPLY) {
DEBUG(1, ("Won't reply to replies.\n")); 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); return tevent_req_post(req, ev);
} }