summaryrefslogtreecommitdiffstats
path: root/src/shared/libosmocore/src/socket.c
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2011-05-27 18:17:05 +0200
committerHarald Welte <laforge@gnumonks.org>2011-05-27 18:17:05 +0200
commit783730eae1cc9eb35f410d1be8f5fb93a1ec6423 (patch)
tree3a1ea93ad0cb9bc498bebb57f6480be72ee4c608 /src/shared/libosmocore/src/socket.c
parentd76345aefa34c576dd142eb64cb0f765cda22933 (diff)
parent4d3a7b124e08a597d5f01fb2a71f3a4677a360a9 (diff)
Merge commit '4d3a7b124e08a597d5f01fb2a71f3a4677a360a9'
Diffstat (limited to 'src/shared/libosmocore/src/socket.c')
-rw-r--r--src/shared/libosmocore/src/socket.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/shared/libosmocore/src/socket.c b/src/shared/libosmocore/src/socket.c
index 66907c8c..901b8cdf 100644
--- a/src/shared/libosmocore/src/socket.c
+++ b/src/shared/libosmocore/src/socket.c
@@ -169,6 +169,8 @@ int osmo_sockaddr_is_local(struct sockaddr *addr, socklen_t addrlen)
}
for (ifa = ifaddr; ifa != NULL; ifa = ifa->ifa_next) {
+ if (!ifa->ifa_addr)
+ continue;
if (sockaddr_equal(ifa->ifa_addr, addr, addrlen))
return 1;
}