mirror of
https://github.com/openssl/openssl.git
synced 2025-02-11 14:22:43 +08:00
Fix name delete problem.
This commit is contained in:
parent
c54b4ee16a
commit
c77f1b37fd
@ -181,11 +181,8 @@ int loc;
|
|||||||
* so basically only if prev and next differ by 2, then
|
* so basically only if prev and next differ by 2, then
|
||||||
* re-number down by 1 */
|
* re-number down by 1 */
|
||||||
if (set_prev+1 < set_next)
|
if (set_prev+1 < set_next)
|
||||||
{
|
|
||||||
j=set_next-set_prev-1;
|
|
||||||
for (i=loc; i<n; i++)
|
for (i=loc; i<n; i++)
|
||||||
((X509_NAME_ENTRY *)sk_value(sk,loc-1))->set-=j;
|
((X509_NAME_ENTRY *)sk_value(sk,i))->set--;
|
||||||
}
|
|
||||||
return(ret);
|
return(ret);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user