fixed OID encoding
authorAndreas Steffen <andreas.steffen@strongswan.org>
Fri, 17 Apr 2009 08:58:07 +0000 (08:58 -0000)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Fri, 17 Apr 2009 08:58:07 +0000 (08:58 -0000)
src/pluto/asn1.c

index afdabe0..747e66c 100644 (file)
@@ -175,7 +175,7 @@ asn1_build_known_oid(int n)
            n--;
            continue;
        }
-       oid.ptr[--i] = oid_names[n--].octet;
+       oid.ptr[--i + 2] = oid_names[n--].octet;
     }
     while (i > 0);