Change in osmo-msc[master]: mncc: rework passing GCR over the MNCC interface

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
Tue Nov 2 18:14:59 UTC 2021


pespin has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-msc/+/25982 )

Change subject: mncc: rework passing GCR over the MNCC interface
......................................................................


Patch Set 7: Code-Review-1

(1 comment)

https://gerrit.osmocom.org/c/osmo-msc/+/25982/7/src/libmsc/gsm_04_08_cc.c 
File src/libmsc/gsm_04_08_cc.c:

https://gerrit.osmocom.org/c/osmo-msc/+/25982/7/src/libmsc/gsm_04_08_cc.c@529 
PS7, Line 529: 		if (msg != NULL && (rc = osmo_enc_gcr(gcr_msg, gcr)) > 0) {
> Because msgb_alloc() may theoretically return NULL.
But that "msg" is passed from another function right? then it should be checked before calling this function. Furthermore, you are already doing above:
"struct gsm48_hdr *gh = msgb_l3(msg)"

So this check makes no sense here.

EDIT: Oh, I think you wanted to do "gcr_msg != NULL" here!



-- 
To view, visit https://gerrit.osmocom.org/c/osmo-msc/+/25982
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-msc
Gerrit-Branch: master
Gerrit-Change-Id: I259b6d7e4cbe26159b9b496356fc7c1c27d54521
Gerrit-Change-Number: 25982
Gerrit-PatchSet: 7
Gerrit-Owner: fixeria <vyanitskiy at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: keith <keith at rhizomatica.org>
Gerrit-Reviewer: pespin <pespin at sysmocom.de>
Gerrit-Comment-Date: Tue, 02 Nov 2021 18:14:59 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Comment-In-Reply-To: fixeria <vyanitskiy at sysmocom.de>
Comment-In-Reply-To: pespin <pespin at sysmocom.de>
Gerrit-MessageType: comment
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20211102/71b61c0e/attachment.htm>


More information about the gerrit-log mailing list