]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
eliminated double-free in the parsing of dist points
authorNikos Mavrogiannopoulos <nmav@gnutls.org>
Mon, 23 Mar 2015 21:55:29 +0000 (22:55 +0100)
committerNikos Mavrogiannopoulos <nmav@gnutls.org>
Fri, 27 Mar 2015 17:04:29 +0000 (18:04 +0100)
Reported by Robert Święcki.

lib/x509/x509_ext.c

index bdec2412d0a385dc96d8b429102f243c1af1fc6a..2fa13e311083014d1311d13f4a5dadf5adb52d10 100644 (file)
@@ -2359,7 +2359,6 @@ int gnutls_x509_ext_import_crl_dist_points(const gnutls_datum_t * ext,
 
        if (ret < 0 && ret != GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE) {
                gnutls_assert();
-               gnutls_free(san.data);
                goto cleanup;
        }