mirror of git://git.sysmocom.de/ofono
gisi: check pipe handle
This commit is contained in:
parent
29155d9a8a
commit
8ea0c03a76
|
@ -333,6 +333,9 @@ static void g_isi_pipe_removed(const GIsiMessage *msg, void *data)
|
|||
if (!resp || g_isi_msg_data_len(msg) != sizeof(struct isi_pipe_resp))
|
||||
return;
|
||||
|
||||
if (pipe->handle != resp->pipe_handle)
|
||||
return;
|
||||
|
||||
pipe->handle = PN_PIPE_INVALID_HANDLE;
|
||||
pipe->error = -EPIPE;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue