summaryrefslogtreecommitdiff
path: root/source4/dns_server
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 19:08:33 +0200
commit2b17566e8902a326253257e1665b3b7a49e1aa26 (patch)
treeaa3ea9d02fd14da43b3f09cff469a706012bd79f /source4/dns_server
parent53f602c3744c0952f3385a39d5984d5a47b9905c (diff)
downloadsamba-2b17566e8902a326253257e1665b3b7a49e1aa26.tar.gz
s4 dns: Make sure to remember incoming tkey name
Diffstat (limited to 'source4/dns_server')
-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 14dc4ca69b5..7362adc426b 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;
}