Fix infinite loop. PR#3347
This commit is contained in:
parent
971a7c5ff7
commit
b00676bb6f
15
apps/req.c
15
apps/req.c
@ -1486,7 +1486,13 @@ start:
|
|||||||
#ifdef CHARSET_EBCDIC
|
#ifdef CHARSET_EBCDIC
|
||||||
ebcdic2ascii(buf, buf, i);
|
ebcdic2ascii(buf, buf, i);
|
||||||
#endif
|
#endif
|
||||||
if(!req_check_len(i, n_min, n_max)) goto start;
|
if(!req_check_len(i, n_min, n_max))
|
||||||
|
{
|
||||||
|
if (batch || value)
|
||||||
|
return 0;
|
||||||
|
goto start;
|
||||||
|
}
|
||||||
|
|
||||||
if (!X509_NAME_add_entry_by_NID(n,nid, chtype,
|
if (!X509_NAME_add_entry_by_NID(n,nid, chtype,
|
||||||
(unsigned char *) buf, -1,-1,mval)) goto err;
|
(unsigned char *) buf, -1,-1,mval)) goto err;
|
||||||
ret=1;
|
ret=1;
|
||||||
@ -1545,7 +1551,12 @@ start:
|
|||||||
#ifdef CHARSET_EBCDIC
|
#ifdef CHARSET_EBCDIC
|
||||||
ebcdic2ascii(buf, buf, i);
|
ebcdic2ascii(buf, buf, i);
|
||||||
#endif
|
#endif
|
||||||
if(!req_check_len(i, n_min, n_max)) goto start;
|
if(!req_check_len(i, n_min, n_max))
|
||||||
|
{
|
||||||
|
if (batch || value)
|
||||||
|
return 0;
|
||||||
|
goto start;
|
||||||
|
}
|
||||||
|
|
||||||
if(!X509_REQ_add1_attr_by_NID(req, nid, chtype,
|
if(!X509_REQ_add1_attr_by_NID(req, nid, chtype,
|
||||||
(unsigned char *)buf, -1)) {
|
(unsigned char *)buf, -1)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user