Change in libosmo-sccp[master]: ss7: Fix osmo_ss7_asp_peer_snprintf() output if peer has zero IP addr...

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:09:50 UTC 2019


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


Change subject: ss7: Fix osmo_ss7_asp_peer_snprintf() output if peer has zero IP addr assigned
......................................................................

ss7: Fix osmo_ss7_asp_peer_snprintf() output if peer has zero IP addr assigned

If no IP addr is assigned yet, until know it'd print "(:3456". Let's
print ":34456" in that scenario.

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



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

diff --git a/src/osmo_ss7.c b/src/osmo_ss7.c
index e7e688d..5da0da8 100644
--- a/src/osmo_ss7.c
+++ b/src/osmo_ss7.c
@@ -1074,7 +1074,7 @@
 	if (buf_len < 3)
 		return -EINVAL;
 
-	if (peer->host_cnt != 1) {
+	if (peer->host_cnt > 1) {
 		ret = snprintf(buf, rem, "(");
 		if (ret < 0)
 			return ret;

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

Gerrit-Project: libosmo-sccp
Gerrit-Branch: master
Gerrit-Change-Id: Iae85d231093b6f3ce6b969324699858e525c14ea
Gerrit-Change-Number: 15865
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/6c4b321f/attachment.htm>


More information about the gerrit-log mailing list