File CVE-2014-3465.patch of Package gnutls.3982

Index: gnutls-3.2.4/lib/x509/common.c
===================================================================
--- gnutls-3.2.4.orig/lib/x509/common.c
+++ gnutls-3.2.4/lib/x509/common.c
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 2003-2012 Free Software Foundation, Inc.
+ * Copyright (C) 2003-2014 Free Software Foundation, Inc.
  *
  * Author: Nikos Mavrogiannopoulos
  *
@@ -242,7 +242,7 @@ gnutls_x509_dn_oid_name (const char *oid
 
   do
     {
-      if (strcmp (_oid2str[i].oid, oid) == 0)
+      if (strcmp (_oid2str[i].oid, oid) == 0 && _oid2str[i].ldap_desc != NULL)
         return _oid2str[i].ldap_desc;
       i++;
     }
openSUSE Build Service is sponsored by