提交 6b313a73 编写于 作者: D Dr. Stephen Henson

Remove debugging fprintf from req.c and fix the code so it properly skips over

the first leading XXX. in the DN.
上级 1745a3fb
...@@ -890,9 +890,12 @@ start: for (;;) ...@@ -890,9 +890,12 @@ start: for (;;)
* multiple instances * multiple instances
*/ */
for(p = v->name; *p ; p++) for(p = v->name; *p ; p++)
if ((*p != ':') || (*p != ',') || if ((*p == ':') || (*p == ',') ||
(*p != '.')) break; (*p == '.')) {
if (*p) type=(char *)p; p++;
if(*p) type = p;
break;
}
/* If OBJ not recognised ignore it */ /* If OBJ not recognised ignore it */
if ((nid=OBJ_txt2nid(type)) == NID_undef) goto start; if ((nid=OBJ_txt2nid(type)) == NID_undef) goto start;
sprintf(buf,"%s_default",v->name); sprintf(buf,"%s_default",v->name);
...@@ -1189,9 +1192,6 @@ char *end; ...@@ -1189,9 +1192,6 @@ char *end;
slen = strlen(str); slen = strlen(str);
if(elen > slen) return 1; if(elen > slen) return 1;
tmp = str + slen - elen; tmp = str + slen - elen;
#ifdef DEBUG
fprintf(stderr, "Matching %s, %s %s\n", str, end, tmp);
#endif
return strcmp(tmp, end); return strcmp(tmp, end);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册