Change in libosmo-sccp[master]: ss7: Fix finding by socket addr if local ip addr is 0.0.0.0

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

pespin gerrit-no-reply at lists.osmocom.org
Wed Oct 23 16:29:09 UTC 2019


pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmo-sccp/+/15866 )


Change subject: ss7: Fix finding  by socket addr if local ip addr is 0.0.0.0
......................................................................

ss7: Fix finding  by socket addr if local ip addr is 0.0.0.0

Change-Id: I319e4983b35f63846ed7e8bfa8e8e3688c5d16e6
---
M src/osmo_ss7.c
1 file changed, 2 insertions(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/libosmo-sccp refs/changes/66/15866/1

diff --git a/src/osmo_ss7.c b/src/osmo_ss7.c
index 5da0da8..8a86af1 100644
--- a/src/osmo_ss7.c
+++ b/src/osmo_ss7.c
@@ -1167,7 +1167,8 @@
 				continue;
 
 			for (i = 0; i < asp->cfg.local.host_cnt; i++) {
-				if (!asp->cfg.local.host[i] || !strcmp(asp->cfg.local.host[i], hostbuf_l))
+				bool is_any = !asp->cfg.local.host[i] || !strcmp(asp->cfg.local.host[i], "0.0.0.0");
+				if (is_any || !strcmp(asp->cfg.local.host[i], hostbuf_l))
 					break;
 			}
 			if (i == asp->cfg.local.host_cnt)

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

Gerrit-Project: libosmo-sccp
Gerrit-Branch: master
Gerrit-Change-Id: I319e4983b35f63846ed7e8bfa8e8e3688c5d16e6
Gerrit-Change-Number: 15866
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20191023/72dd762e/attachment.htm>


More information about the gerrit-log mailing list