mslookup_client_mdns.c: fix dereferencing null

Fixes: CID#207545
Change-Id: I0f7fbbdb663304bd5214cba4a6e4abe1dd165cfa
This commit is contained in:
Oliver Smith 2020-01-13 15:00:13 +01:00
parent b1775162ea
commit 89afb7f78b
1 changed files with 1 additions and 0 deletions

View File

@ -114,6 +114,7 @@ static void mdns_method_request(struct osmo_mslookup_client_method *method, cons
if (!msg) {
LOGP(DMSLOOKUP, LOGL_ERROR, "Cannot encode request: %s\n",
osmo_mslookup_result_name_b(buf, sizeof(buf), query, NULL));
return;
}
/* Send over the wire */