summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2014-01-16 12:20:12 +0100
committerNikos Mavrogiannopoulos <nmav@redhat.com>2016-02-26 12:15:48 +0100
commit2e2703f3d30c622ab29b73c98d10625b038be811 (patch)
treef8051052817d79af7d842e572b858bb17e9797e6
parent82e11615e9ef81bc5a13635cb4cc9d483778180c (diff)
downloadgnutls-2e2703f3d30c622ab29b73c98d10625b038be811.tar.gz
when freeing priority_cache make sure it is set to NULL
-rw-r--r--lib/gnutls_priority.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/gnutls_priority.c b/lib/gnutls_priority.c
index ce942dc645..725358757f 100644
--- a/lib/gnutls_priority.c
+++ b/lib/gnutls_priority.c
@@ -789,6 +789,7 @@ error:
}
gnutls_free (darg);
gnutls_free (*priority_cache);
+ *priority_cache = NULL;
return GNUTLS_E_INVALID_REQUEST;