From: Dr. Stephen Henson Date: Sun, 8 Apr 2007 17:45:47 +0000 (+0000) Subject: Fix from stable branch. X-Git-Tag: OpenSSL_0_9_8k^2~896 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0cc361f3e7700537699c6668b3415d56acb7c3c3;p=openssl Fix from stable branch. --- diff --git a/crypto/asn1/asn_moid.c b/crypto/asn1/asn_moid.c index 72cc1210be..9132350f10 100644 --- a/crypto/asn1/asn_moid.c +++ b/crypto/asn1/asn_moid.c @@ -149,7 +149,7 @@ static int do_create(char *value, char *name) if (lntmp == NULL) return 0; memcpy(lntmp, ln, p - ln); - lntmp[p - ln + 1] = 0; + lntmp[p - ln] = 0; oid = OBJ_nid2obj(nid); oid->ln = lntmp; }