mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
s4: dns: Correctly check for talloc failure.
Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> Autobuild-User(master): Volker Lendecke <vl@samba.org> Autobuild-Date(master): Thu Jun 16 16:55:15 CEST 2016 on sn-devel-144
This commit is contained in:
parent
e2743b110f
commit
c3dfeb3aa6
@ -153,6 +153,9 @@ WERROR dns_verify_tsig(struct dns_server *dns,
|
||||
*/
|
||||
state->key_name = talloc_strdup(state->mem_ctx,
|
||||
state->tsig->name);
|
||||
if (state->key_name == NULL) {
|
||||
return WERR_NOMEM;
|
||||
}
|
||||
state->tsig_error = DNS_RCODE_BADKEY;
|
||||
return DNS_ERR(NOTAUTH);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user