chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0d6ce92
)
udev: net_id - fix OUI handling
author
Kay Sievers
<kay@vrfy.org>
Thu, 6 Dec 2012 20:37:10 +0000
(21:37 +0100)
committer
Kay Sievers
<kay@vrfy.org>
Thu, 6 Dec 2012 20:37:10 +0000
(21:37 +0100)
src/udev/udev-builtin-net_id.c
patch
|
blob
|
history
diff --git
a/src/udev/udev-builtin-net_id.c
b/src/udev/udev-builtin-net_id.c
index 88c28a94d88db50bef4d682296d19e4e761baf5d..e6db2e4798871da81cfc6458843c87dc0748d2ac 100644
(file)
--- 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) {
/* 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)
return -ENOENT;
/* skip commonly misused 00:00:00 (Xerox) prefix */
if (memcmp(names->mac, "\0\0\0", 3) == 0)