]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
when freeing priority_cache make sure it is set to NULL
authorNikos Mavrogiannopoulos <nmav@redhat.com>
Thu, 16 Jan 2014 11:18:50 +0000 (12:18 +0100)
committerNikos Mavrogiannopoulos <nmav@redhat.com>
Thu, 16 Jan 2014 11:18:50 +0000 (12:18 +0100)
lib/gnutls_priority.c

index 34c64ee6c822500c5b2b3afcf29c2f60a8f8dc09..216d2075f2caf987103c06d4b4242a57712ccbf4 100644 (file)
@@ -1271,6 +1271,7 @@ gnutls_priority_init(gnutls_priority_t * priority_cache,
        }
        free(darg);
        gnutls_free(*priority_cache);
+       *priority_cache = NULL;
 
        return GNUTLS_E_INVALID_REQUEST;