Skip to content

Commit

Permalink
Merge pull request P1sec#131 from axilirator/fixeria/fixes
Browse files Browse the repository at this point in the history
mobile/GSMTAP: fix set_dicauto() applied to wrong field
  • Loading branch information
p1-bmu authored Mar 1, 2021
2 parents c6d5b36 + 21c8e24 commit a20d9eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pycrate_mobile/GSMTAP.py
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ class gsmtap_hdr(Envelope):
)
def __init__(self, *args, **kwargs):
Envelope.__init__(self, *args, **kwargs)
self[9].set_dicauto(self._set_subtype_dic)
self['sub_type'].set_dicauto(self._set_subtype_dic)

def _set_subtype_dic(self):
return SubTypeDictLU_dict.get(self[2].get_val(), {})
Expand Down

0 comments on commit a20d9eb

Please sign in to comment.