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/.

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


laforge has submitted this change. ( 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(-)

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



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: 2
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/a813f256/attachment.htm>


More information about the gerrit-log mailing list