Change in osmo-hlr[master]: osmo-mslookup-client.c: fix dereferencing null

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.org
Mon Jan 13 14:57:40 UTC 2020


osmith has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-hlr/+/16843 )


Change subject: osmo-mslookup-client.c: fix dereferencing null
......................................................................

osmo-mslookup-client.c: fix dereferencing null

Fixes: CID#207544
Change-Id: I51b974420975e670708f0d2318f63615d281922c
---
M src/mslookup/osmo-mslookup-client.c
1 file changed, 2 insertions(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-hlr refs/changes/43/16843/1

diff --git a/src/mslookup/osmo-mslookup-client.c b/src/mslookup/osmo-mslookup-client.c
index 1c0efe9..fc9b56d 100644
--- a/src/mslookup/osmo-mslookup-client.c
+++ b/src/mslookup/osmo-mslookup-client.c
@@ -325,7 +325,8 @@
 
 	rc = 0;
 exit_cleanup:
-	osmo_mdns_sock_cleanup(sock);
+	if (sock)
+		osmo_mdns_sock_cleanup(sock);
 	talloc_free(ctx);
 	return rc;
 }

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

Gerrit-Project: osmo-hlr
Gerrit-Branch: master
Gerrit-Change-Id: I51b974420975e670708f0d2318f63615d281922c
Gerrit-Change-Number: 16843
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/eb38b0f1/attachment.htm>


More information about the gerrit-log mailing list