summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--regress/sbin/isakmpd/prf/prftest.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/regress/sbin/isakmpd/prf/prftest.c b/regress/sbin/isakmpd/prf/prftest.c
index ca3fa0635b3..a1b0c44be3a 100644
--- a/regress/sbin/isakmpd/prf/prftest.c
+++ b/regress/sbin/isakmpd/prf/prftest.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: prftest.c,v 1.1 2005/04/08 17:12:50 cloder Exp $ */
+/* $OpenBSD: prftest.c,v 1.2 2016/09/04 17:47:37 mikeb Exp $ */
/* $EOM: prftest.c,v 1.2 1998/10/07 16:40:50 niklas Exp $ */
/*
@@ -96,8 +96,6 @@ test_prf (char *test, enum hashes hash, char *key, int klen,
prf->Update (prf->prfctx, data, dlen);
prf->Final (digest, prf->prfctx);
- prf_free (prf);
-
for (i = 0; i < prf->blocksize; i++)
{
output[2 * i] = nibble2c ((digest[i] >> 4) & 0xf);
@@ -105,6 +103,8 @@ test_prf (char *test, enum hashes hash, char *key, int klen,
}
output[2 * i] = 0;
+ prf_free (prf);
+
if (strcmp (output, cmp) == 0)
{
printf ("OKAY\n");