summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2014-01-16 12:20:12 +0100
committerNikos Mavrogiannopoulos <nmav@redhat.com>2014-01-16 12:20:12 +0100
commit106dd237887c0dc7e6120969ce27a0988cce401c (patch)
tree8b501d0fd3527dc659b52cd1e6c3cbd8f2026776
parent7988bdd5812d95b0f9fa7f4d9ebe9913e6bcd1aa (diff)
downloadgnutls-106dd237887c0dc7e6120969ce27a0988cce401c.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 777710990b..7eff609f35 100644
--- a/lib/gnutls_priority.c
+++ b/lib/gnutls_priority.c
@@ -1117,6 +1117,7 @@ error:
}
gnutls_free (darg);
gnutls_free (*priority_cache);
+ *priority_cache = NULL;
return GNUTLS_E_INVALID_REQUEST;