diff --git a/scapy/asn1fields.py b/scapy/asn1fields.py index d368f4c0b149f55185975d56af800e56d8350c32..d5d1add3cdf4e5bba588c15825d9f0d86b20418d 100644 --- a/scapy/asn1fields.py +++ b/scapy/asn1fields.py @@ -182,7 +182,7 @@ class ASN1F_enum_INTEGER(ASN1F_INTEGER): def i2m(self, pkt, s): if isinstance(s, str): s = self.s2i.get(s) - return super(ASN1F_INTEGER, self).i2m(pkt, s) + return super(ASN1F_enum_INTEGER, self).i2m(pkt, s) def i2repr(self, pkt, x): if x is not None and isinstance(x, ASN1_INTEGER): r = self.i2s.get(x.val)