diff options
author | Kai Blin <kai@samba.org> | 2012-09-05 01:26:16 +0200 |
---|---|---|
committer | Kai Blin <kai@samba.org> | 2012-09-05 19:08:33 +0200 |
commit | 2b17566e8902a326253257e1665b3b7a49e1aa26 (patch) | |
tree | aa3ea9d02fd14da43b3f09cff469a706012bd79f | |
parent | 53f602c3744c0952f3385a39d5984d5a47b9905c (diff) | |
download | samba-2b17566e8902a326253257e1665b3b7a49e1aa26.tar.gz samba-2b17566e8902a326253257e1665b3b7a49e1aa26.tar.bz2 samba-2b17566e8902a326253257e1665b3b7a49e1aa26.zip |
s4 dns: Make sure to remember incoming tkey name
-rw-r--r-- | source4/dns_server/dns_crypto.c | 4 |
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; } |