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 uploaded this change for review. ( 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(-)
git pull ssh://gerrit.osmocom.org:29418/osmo-hlr refs/changes/44/16844/1
diff --git a/src/mslookup/osmo-mslookup-client.c b/src/mslookup/osmo-mslookup-client.c
index fc9b56d..00677ef 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: 1
Gerrit-Owner: osmith <osmith at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200113/a563dff9/attachment.htm>