mirror of
https://github.com/samba-team/samba.git
synced 2025-02-02 09:47:23 +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:
parent
a15159f5a5
commit
8416a97b30
@ -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);
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user