bluez5: backend-native: fix erroneous goto

In this error condition, execution is supposed to return immediately
because rfcomm is no longer valid. However, the code was incorrectly
changed to jump to the done label, which would try to use rfcomm
again to process pending commands.
This commit is contained in:
George Kiagiadakis 2025-02-07 13:14:59 +02:00
parent 62645214a7
commit 48fb960274

View file

@ -1309,7 +1309,7 @@ static bool hfp_hf_wait_for_reply(struct rfcomm *rfcomm, char *buf, size_t len)
if (fds[0].revents & (POLLHUP | POLLERR)) {
spa_log_info(backend->log, "lost RFCOMM connection.");
rfcomm_free(rfcomm);
goto done;
return false;
}
if (fds[0].revents & POLLIN) {