safchain / ethtool

A simple ethtool "like" library for GO
Apache License 2.0
116 stars 69 forks source link

fix panic if key without padding #34

Closed gescheit closed 4 years ago

gescheit commented 4 years ago

For example mlxsw_spectrum has 'a_mac_control_frames_transmitted' key, which triggers panic because there is no \x00 padding.

safchain commented 4 years ago

Thanks for the fix