Change in libosmo-sccp[master]: ss7: Fix finding asp 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/.

laforge gerrit-no-reply at lists.osmocom.org
Wed Oct 23 18:10:11 UTC 2019


laforge has submitted this change. ( https://gerrit.osmocom.org/c/libosmo-sccp/+/15866 )

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

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

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

Approvals:
  laforge: Looks good to me, approved
  Jenkins Builder: Verified



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: 3
Gerrit-Owner: pespin <pespin at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20191023/dff50328/attachment.htm>


More information about the gerrit-log mailing list