summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorKai Blin <kai@samba.org>2012-09-05 01:26:16 +0200
committerKai Blin <kai@samba.org>2012-09-05 08:41:24 +0200
commitb5dd26cc694230ce9526369eb2ac4175a2d90abb (patch)
treefdb1588e01d47aa19bd1e45f2922f4cf7f6cc317 /source4
parent140a8d86acd9fe1b00a2865552f16f6250280d32 (diff)
downloadsamba-b5dd26cc694230ce9526369eb2ac4175a2d90abb.tar.gz
samba-b5dd26cc694230ce9526369eb2ac4175a2d90abb.tar.bz2
samba-b5dd26cc694230ce9526369eb2ac4175a2d90abb.zip
s4 dns: Make sure to remember incoming tkey name
Diffstat (limited to 'source4')
-rw-r--r--source4/dns_server/dns_crypto.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/dns_server/dns_crypto.c b/source4/dns_server/dns_crypto.c
index 14dc4ca69b..7362adc426 100644
--- a/source4/dns_server/dns_crypto.c
+++ b/source4/dns_server/dns_crypto.c
@@ -223,6 +223,10 @@ WERROR dns_verify_tsig(struct dns_server *dns,
}
state->authenticated = true;
+ state->key_name = talloc_strdup(mem_ctx, tkey->name);
+ if (state->key_name == NULL) {
+ return WERR_NOMEM;
+ }
return WERR_OK;
}