diff options
author | Kay Sievers <kay@vrfy.org> | 2012-12-06 21:37:10 +0100 |
---|---|---|
committer | Kay Sievers <kay@vrfy.org> | 2012-12-06 21:37:10 +0100 |
commit | 971e7fb62548f2c9c4e32684bb13409e6579dc6a (patch) | |
tree | 43746697d4ce06302ef921147e6471b5d1b635e3 /src/udev/udev-builtin-net_id.c | |
parent | 0d6ce9236f61cb991d7e8f2359d818e41ead0cf5 (diff) |
udev: net_id - fix OUI handling
Diffstat (limited to 'src/udev/udev-builtin-net_id.c')
-rw-r--r-- | src/udev/udev-builtin-net_id.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/udev/udev-builtin-net_id.c b/src/udev/udev-builtin-net_id.c index 88c28a94d8..e6db2e4798 100644 --- a/src/udev/udev-builtin-net_id.c +++ b/src/udev/udev-builtin-net_id.c @@ -330,9 +330,9 @@ static int names_mac(struct udev_device *dev, struct netnames *names) { /* IEEE Organizationally Unique Identifier vendor string */ static int ieee_oui(struct udev_device *dev, struct netnames *names, bool test) { - char str[IFNAMSIZ]; + char str[32]; - if (names->mac_valid) + if (!names->mac_valid) return -ENOENT; /* skip commonly misused 00:00:00 (Xerox) prefix */ if (memcmp(names->mac, "\0\0\0", 3) == 0) |