workaround for algorithmIdentifiers with missing parameters field
authorAndreas Steffen <andreas.steffen@strongswan.org>
Fri, 13 Mar 2009 07:54:29 +0000 (07:54 -0000)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Fri, 13 Mar 2009 07:54:29 +0000 (07:54 -0000)
src/pluto/asn1.c

index bcfdca1..d15a68e 100644 (file)
@@ -723,7 +723,7 @@ parse_algorithmIdentifier(chunk_t blob, int level0, chunk_t *parameters)
     while (objectID < ALGORITHM_ID_ROOF)
     {
        if (!extract_object(algorithmIdentifierObjects, &objectID, &object, &level, &ctx))
-            return OID_UNKNOWN;
+            return alg;
 
        switch (objectID)
        {