Description: Allow OIDs in varbinds to point to noSuchInstance OIDs
 Some devices trap a PDU that has OIDs pointing to nonexistent OIDs.
 .
   * Patched to handle [noSuchInstance] OIDs in traps
Author: Sander Smeenk <support@bit.nl>
Last-Update: <2014-08-18>

--- libconvert-asn1-perl-0.26.orig/lib/Convert/ASN1/_decode.pm
+++ libconvert-asn1-perl-0.26/lib/Convert/ASN1/_decode.pm
@@ -246,7 +246,11 @@ sub _decode {
 	      next OP;
 	    }
 	  }
-	  die "decode error" unless $op->[cEXT];
+          if (!$op->[cEXT]) {
+            print STDERR "Convert::ASN1::decode error - no \$op->[cEXT] for OID " . $op->[cVAR] . "\n";
+            $stash->{$op->[cVAR]} = {'noSuchInstance' => 'noSuchInstance'};
+            $pos = $end; # Skip over the rest
+          }
 	}
 	elsif ($op->[cTYPE] == opEXTENSIONS) {
 	    $pos = $end; # Skip over the rest
