summaryrefslogtreecommitdiffstats
path: root/gisi
diff options
context:
space:
mode:
authorMika Liljeberg <mika.liljeberg@nokia.com>2010-11-29 12:21:30 +0200
committerAki Niemi <aki.niemi@nokia.com>2010-12-22 17:13:48 +0200
commit8ea0c03a76f70b5028f333853848205fefa0a321 (patch)
treed0476dbcde9f112b9765d253eca101b030617283 /gisi
parent29155d9a8aa96241f5f4bfb6dd25c4338aca515a (diff)
downloadofono-8ea0c03a76f70b5028f333853848205fefa0a321.tar.bz2
gisi: check pipe handle
Diffstat (limited to 'gisi')
-rw-r--r--gisi/pipe.c3
1 files changed, 3 insertions, 0 deletions
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;
}