summaryrefslogtreecommitdiffstats
path: root/crypto/x509/x509name.c
diff options
context:
space:
mode:
authorBen Laurie <ben@openssl.org>1998-12-31 17:08:34 +0000
committerBen Laurie <ben@openssl.org>1998-12-31 17:08:34 +0000
commitc77f1b37fd60fbdba106cd7890aa4dce55e85e1a (patch)
tree9a4fe66340825fcec258ab53a3cc418e8f0d46ca /crypto/x509/x509name.c
parentc54b4ee16ae208237b9ec06b6fa39169fca07f13 (diff)
Fix name delete problem.
Diffstat (limited to 'crypto/x509/x509name.c')
-rw-r--r--crypto/x509/x509name.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/crypto/x509/x509name.c b/crypto/x509/x509name.c
index 650e71b1b5..dbf9d224ec 100644
--- a/crypto/x509/x509name.c
+++ b/crypto/x509/x509name.c
@@ -181,11 +181,8 @@ int loc;
* so basically only if prev and next differ by 2, then
* re-number down by 1 */
if (set_prev+1 < set_next)
- {
- j=set_next-set_prev-1;
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);
}