gisi: check pipe handle

This commit is contained in:
Mika Liljeberg 2010-11-29 12:21:30 +02:00 committed by Aki Niemi
parent 29155d9a8a
commit 8ea0c03a76
1 changed files with 3 additions and 0 deletions

View File

@ -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;
}