aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>1999-02-24 00:14:21 +0000
committerDr. Stephen Henson <steve@openssl.org>1999-02-24 00:14:21 +0000
commit6b313a7365defc2334430284455e535adbb8e9f4 (patch)
treeb60dc7579c36449b9909f9c89403f211a849a4d4 /apps
parent1745a3fb9fde6ee8c3c505b597e63db08e39c367 (diff)
downloadopenssl-6b313a7365defc2334430284455e535adbb8e9f4.tar.gz
Remove debugging fprintf from req.c and fix the code so it properly skips over
the first leading XXX. in the DN.
Diffstat (limited to 'apps')
-rw-r--r--apps/req.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/req.c b/apps/req.c
index 8535a1e6db..dad1a50c46 100644
--- a/apps/req.c
+++ b/apps/req.c
@@ -890,9 +890,12 @@ start: for (;;)
* multiple instances
*/
for(p = v->name; *p ; p++)
- if ((*p != ':') || (*p != ',') ||
- (*p != '.')) break;
- if (*p) type=(char *)p;
+ if ((*p == ':') || (*p == ',') ||
+ (*p == '.')) {
+ p++;
+ if(*p) type = p;
+ break;
+ }
/* If OBJ not recognised ignore it */
if ((nid=OBJ_txt2nid(type)) == NID_undef) goto start;
sprintf(buf,"%s_default",v->name);
@@ -1189,9 +1192,6 @@ char *end;
slen = strlen(str);
if(elen > slen) return 1;
tmp = str + slen - elen;
-#ifdef DEBUG
- fprintf(stderr, "Matching %s, %s %s\n", str, end, tmp);
-#endif
return strcmp(tmp, end);
}