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/.
osmith gerrit-no-reply at lists.osmocom.orgosmith has submitted this change. ( https://gerrit.osmocom.org/c/osmo-hlr/+/16844 ) Change subject: osmo-mslookup-client: fix dereferencing null ...................................................................... osmo-mslookup-client: fix dereferencing null Fixes: CID#207543 Change-Id: Ia9ff5b2c767853dd00f577a7bc3583f408e061b5 --- M src/mslookup/osmo-mslookup-client.c 1 file changed, 5 insertions(+), 0 deletions(-) Approvals: Jenkins Builder: Verified pespin: Looks good to me, approved diff --git a/src/mslookup/osmo-mslookup-client.c b/src/mslookup/osmo-mslookup-client.c index 5f06d5f..4a9e587 100644 --- a/src/mslookup/osmo-mslookup-client.c +++ b/src/mslookup/osmo-mslookup-client.c @@ -456,6 +456,11 @@ rxbuf[rc] = '\0'; query_with_timeout = strtok(rxbuf, "\r\n"); + if (!query_with_timeout) { + print_error("ERROR: failed to read line from socket\n"); + goto close; + } + at = strchr(query_with_timeout, '@'); query_str = at ? at + 1 : query_with_timeout; -- To view, visit https://gerrit.osmocom.org/c/osmo-hlr/+/16844 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: osmo-hlr Gerrit-Branch: master Gerrit-Change-Id: Ia9ff5b2c767853dd00f577a7bc3583f408e061b5 Gerrit-Change-Number: 16844 Gerrit-PatchSet: 2 Gerrit-Owner: osmith <osmith at sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: osmith <osmith at sysmocom.de> Gerrit-Reviewer: pespin <pespin at sysmocom.de> Gerrit-MessageType: merged -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200114/2e50c9ce/attachment.htm>