diff options
author | Tom Gundersen <teg@jklm.no> | 2015-05-21 15:22:07 +0200 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2015-05-21 15:27:24 +0200 |
commit | dab495dc23bf9a5ba0487a057bb594355555a0e9 (patch) | |
tree | 76ce13378476f7bc38026e6d1eba627a2df322a0 /src/udev/net/link-config.h | |
parent | 3641cff2f1bce4f8d8a46ab9bb988093d45aa697 (diff) |
udev: link-config - fix corruption
The parser used for MTU and Speed expects them to be size_t, not unsigned int.
This caused a corruption in the rest of the structure.
Reported by David O Neill <david.m.oneill@intel.com>.
Diffstat (limited to 'src/udev/net/link-config.h')
-rw-r--r-- | src/udev/net/link-config.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/udev/net/link-config.h b/src/udev/net/link-config.h index 34facdeb5d..9875057e84 100644 --- a/src/udev/net/link-config.h +++ b/src/udev/net/link-config.h @@ -66,8 +66,8 @@ struct link_config { NamePolicy *name_policy; char *name; char *alias; - unsigned int mtu; - unsigned int speed; + size_t mtu; + size_t speed; Duplex duplex; WakeOnLan wol; |