Commit e68de4a7 authored by Brian Wellington's avatar Brian Wellington
Browse files

306. [bug] Reading HMAC-MD5 private key files didn't work.

parent b3e4ce30
306. [bug] Reading HMAC-MD5 private key files didn't work.
305. [bug] When reloading the server with a config file
containing a syntax error, it could catch an
assertion failure trying to perform zone
......
......@@ -19,7 +19,7 @@
/*
* Principal Author: Brian Wellington
* $Id: hmac_link.c,v 1.38 2000/06/12 18:05:12 bwelling Exp $
* $Id: hmac_link.c,v 1.39 2000/07/03 23:27:45 bwelling Exp $
*/
#include <config.h>
......@@ -270,9 +270,10 @@ hmacmd5_fromfile(dst_key_t *key, const isc_uint16_t id, const char *filename) {
isc_buffer_init(&b, priv.elements[0].data, priv.elements[0].length);
isc_buffer_add(&b, priv.elements[0].length);
ret = hmacmd5_fromdns(key, &b);
dst__privstruct_free(&priv, mctx);
memset(&priv, 0, sizeof(priv));
return (hmacmd5_fromdns(key, &b));
return (ret);
}
static dst_func_t hmacmd5_functions = {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment