From 8ea0c03a76f70b5028f333853848205fefa0a321 Mon Sep 17 00:00:00 2001 From: Mika Liljeberg Date: Mon, 29 Nov 2010 12:21:30 +0200 Subject: gisi: check pipe handle --- gisi/pipe.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gisi') diff --git a/gisi/pipe.c b/gisi/pipe.c index cabd02a3..84ceb16c 100644 --- a/gisi/pipe.c +++ b/gisi/pipe.c @@ -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; } -- cgit v1.2.3