File gnutls-CVE-2015-6251.patch of Package gnutls.3982

commit 272854367efc130fbd4f1a51840d80c630214e12
Author: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date:   Mon Jul 20 21:49:28 2015 +0200

    Reset the output value on error in _gnutls_x509_dn_to_string()
    
    Reported by Kurt Roeckx.

Index: gnutls-3.2.4/lib/x509/common.c
===================================================================
--- gnutls-3.2.4.orig/lib/x509/common.c	2015-08-21 13:57:45.869863372 +0200
+++ gnutls-3.2.4/lib/x509/common.c	2015-08-21 13:58:57.001750845 +0200
@@ -449,6 +449,7 @@ _gnutls_x509_dn_to_string (const char *o
         {
           gnutls_assert();
           gnutls_free(str->data);
+          str->data = NULL;
           return ret;
         }
       str->size = size;
openSUSE Build Service is sponsored by