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.orgNeels Hofmeyr has submitted this change and it was merged. ( https://gerrit.osmocom.org/10556 ) Change subject: fix handling of "Wrong domain name" error ...................................................................... fix handling of "Wrong domain name" error If no endpoint was found, assert that the cause code indicates error, so that the remaining code path doesn't assume finding an endpoint was successful. Also fix find_endpoint() to return an error cause (not 0) in case it finds the domain name to be wrong. After this, the error described in OS#3488 simply results in a CRCX failure, not in a program crash. Related: OS#3488 Change-Id: I87e2d76c22603d6fef89907c3cf8f7965abf35a0 --- M src/libosmo-mgcp/mgcp_msg.c 1 file changed, 2 insertions(+), 0 deletions(-) Approvals: Harald Welte: Looks good to me, approved Jenkins Builder: Verified diff --git a/src/libosmo-mgcp/mgcp_msg.c b/src/libosmo-mgcp/mgcp_msg.c index 8d22cc5..7378ddc 100644 --- a/src/libosmo-mgcp/mgcp_msg.c +++ b/src/libosmo-mgcp/mgcp_msg.c @@ -241,6 +241,7 @@ /* Check if the domainname in the request is correct */ if (check_domain_name(cfg, mgcp)) { LOGP(DLMGCP, LOGL_ERROR, "Wrong domain name '%s'\n", mgcp); + *cause = -500; return NULL; } @@ -320,6 +321,7 @@ if (!pdata->endp) { LOGP(DLMGCP, LOGL_ERROR, "Unable to find Endpoint `%s'\n", elem); + OSMO_ASSERT(cause < 0); return cause; } break; -- To view, visit https://gerrit.osmocom.org/10556 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: osmo-mgw Gerrit-Branch: master Gerrit-MessageType: merged Gerrit-Change-Id: I87e2d76c22603d6fef89907c3cf8f7965abf35a0 Gerrit-Change-Number: 10556 Gerrit-PatchSet: 1 Gerrit-Owner: Neels Hofmeyr <nhofmeyr at sysmocom.de> Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org> Gerrit-Reviewer: Jenkins Builder (1000002) Gerrit-Reviewer: Neels Hofmeyr <nhofmeyr at sysmocom.de> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20180820/4bfa2695/attachment.htm>