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 <pes...@sysmocom.de>
Gerrit-MessageType: newchange

Reply via email to