summaryrefslogtreecommitdiffstats
path: root/python-ethtool/etherinfo.c
diff options
context:
space:
mode:
Diffstat (limited to 'python-ethtool/etherinfo.c')
-rw-r--r--python-ethtool/etherinfo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/python-ethtool/etherinfo.c b/python-ethtool/etherinfo.c
index 41a55fe..3350cf9 100644
--- a/python-ethtool/etherinfo.c
+++ b/python-ethtool/etherinfo.c
@@ -147,7 +147,7 @@ static void callback_nl_link(struct nl_object *obj, void *arg)
unsigned char *binaddr;
char hwaddr[130], *ptr;
- if( (ethi == NULL) || (ethi->hwaddress != NULL) ) {
+ if( (ethi == NULL) || (ethi->hwaddress != NULL) || (addr == NULL) ) {
return;
}