/*
* Principal Author: Brian Wellington
- * $Id: dst_parse.c,v 1.26.4.1 2001/01/09 22:48:21 bwelling Exp $
+ * $Id: dst_parse.c,v 1.26.4.2 2001/09/15 00:39:46 gson Exp $
*/
#include <config.h>
memset(&priv->elements[n], 0, sizeof(dst_private_element_t));
tag = find_value(token.value.as_pointer, dst_key_alg(key));
- if (tag < 0 || TAG_ALG(tag) != dst_key_alg(key))
+ if (tag < 0 || TAG_ALG(tag) != dst_key_alg(key)) {
+ ret = DST_R_INVALIDPRIVATEKEY;
goto fail;
+ }
priv->elements[n].tag = tag;
data = (unsigned char *) isc_mem_get(mctx, MAXFIELDSIZE);