diff options
author | Jeremy Allison <jra@samba.org> | 2016-06-15 21:25:59 -0700 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2016-06-23 12:10:22 +0200 |
commit | 6ec1a8a99f86558a8d4b89357618503caab0a40e (patch) | |
tree | 271d4cb3eb273dfb899b566b2ac5e92c715425c5 /source4 | |
parent | 6aeed14be480979d6aabd67c6eac56dc01c2c6cf (diff) | |
download | samba-6ec1a8a99f86558a8d4b89357618503caab0a40e.tar.gz |
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
(cherry picked from commit c3dfeb3aa6c7df5127022abc090e446adc1b7d71)
Diffstat (limited to 'source4')
-rw-r--r-- | source4/dns_server/dns_crypto.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/dns_server/dns_crypto.c b/source4/dns_server/dns_crypto.c index 607935733e0..dc375aeae28 100644 --- a/source4/dns_server/dns_crypto.c +++ b/source4/dns_server/dns_crypto.c @@ -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); } |