Skip to content

Commit

Permalink
Unicast search failed to release a lock in case of a bad input URL
Browse files Browse the repository at this point in the history
  • Loading branch information
medoc92 committed Aug 9, 2024
1 parent fb2d508 commit 120a9cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/upnpapi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1492,6 +1492,7 @@ static int searchAsyncUniMulti(
if (checkLockHandle(HND_CLIENT, hnd, &SInfo, true) == HND_INVALID) {
return UPNP_E_INVALID_HANDLE;
}
HandleUnlock();
if (mx == 0) {
// unicast. Need address
if (nullptr == shost || shost[0] == 0) {
Expand All @@ -1504,7 +1505,6 @@ static int searchAsyncUniMulti(
}
}

HandleUnlock();
return SearchByTarget(mx, target, shost, port, cookie);
}

Expand Down

0 comments on commit 120a9cc

Please sign in to comment.