fixeria has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/libosmocore/+/19840 )


Change subject: macaddr: fix osmo_get_macaddr(): return -1 if no device is found
......................................................................

macaddr: fix osmo_get_macaddr(): return -1 if no device is found

Change-Id: I74d33159485ec1f7f09b444621a2d1941c3dd4db
---
M src/macaddr.c
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/40/19840/1

diff --git a/src/macaddr.c b/src/macaddr.c
index de9d07a..a9138f8 100644
--- a/src/macaddr.c
+++ b/src/macaddr.c
@@ -102,7 +102,7 @@
        }

        freeifaddrs(ifaddr);
-       return 0;
+       return rc;
 }

 #else

--
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/19840
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I74d33159485ec1f7f09b444621a2d1941c3dd4db
Gerrit-Change-Number: 19840
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <[email protected]>
Gerrit-MessageType: newchange

Reply via email to