osmo-mgw[master]: vty: do not change number_endpoints at runtime

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

Neels Hofmeyr gerrit-no-reply at lists.osmocom.org
Fri Nov 24 12:38:53 UTC 2017


Patch Set 3: Code-Review-1

(3 comments)

sorry to have to annoy once more, but it needs to be safe plz

https://gerrit.osmocom.org/#/c/4779/3/src/libosmo-mgcp/mgcp_vty.c
File src/libosmo-mgcp/mgcp_vty.c:

Line 1283: 
unrelated ws


Line 1296: 	g_cfg->trunk.number_endpoints = g_cfg->trunk.vty_number_endpoints;
-1: rather assign the number of allocated endpoints only after allocation, otherwise we will have a similar problem of for-loops iterating over an array that has not been allocated.


Line 1305: 		trunk->number_endpoints = trunk->vty_number_endpoints;
same


-- 
To view, visit https://gerrit.osmocom.org/4779
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: comment
Gerrit-Change-Id: I3994af016fb96427263edbba05f560743f85fdd4
Gerrit-PatchSet: 3
Gerrit-Project: osmo-mgw
Gerrit-Branch: master
Gerrit-Owner: dexter <pmaier at sysmocom.de>
Gerrit-Reviewer: Holger Freyther <holger at freyther.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: Neels Hofmeyr <nhofmeyr at sysmocom.de>
Gerrit-HasComments: Yes



More information about the gerrit-log mailing list