summaryrefslogtreecommitdiff
path: root/dst/dst_api.c
diff options
context:
space:
mode:
Diffstat (limited to 'dst/dst_api.c')
-rw-r--r--dst/dst_api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dst/dst_api.c b/dst/dst_api.c
index f93ee810..30dc66f5 100644
--- a/dst/dst_api.c
+++ b/dst/dst_api.c
@@ -819,7 +819,7 @@ dst_key_to_buffer(DST_KEY *key, u_char *out_buff, unsigned buf_len)
/* this function will extract the secret of HMAC into a buffer */
if(key == NULL)
return (0);
- if(key->dk_func != NULL && key->dk_func != NULL) {
+ if(key->dk_func != NULL && key->dk_func->to_dns_key != NULL) {
len = key->dk_func->to_dns_key(key, out_buff, buf_len);
if (len < 0)
return (0);