summaryrefslogtreecommitdiff
blob: 99bd1b76cbe6fd512c37413a70ab22c580965f03 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
http://git.savannah.gnu.org/gitweb/?p=gnutls.git;a=commitdiff;h=c12e7507562d5f168330acf1dd7db7cc2079cdf0

--- lib/x509/common.c
+++ lib/x509/common.c
@@ -181,7 +181,7 @@ _gnutls_x509_oid_data2string (const char *oid, void *value,
 {
   char str[MAX_STRING_LEN], tmpname[128];
   const char *ANAME = NULL;
-  int CHOICE = -1, len = -1, result, i;
+  int CHOICE = -1, len = -1, result;
   ASN1_TYPE tmpasn = ASN1_TYPE_EMPTY;
   char asn1_err[ASN1_MAX_ERROR_DESCRIPTION_SIZE] = "";
 
@@ -317,12 +317,6 @@ _gnutls_x509_oid_data2string (const char *oid, void *value,
 	    }
 	}
     }
-  
-  /* Convert null char in the name to '?'
-   * to protect applications */
-  for (i=0;i<*res_size;i++) {
-      if (res[i] == 0) res[i]='?';
-  }
 
   return 0;
 }