From 8c65c2f5a6016b69950897934a892f9febfbc195 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Mon, 12 Jan 2015 13:26:42 +0100 Subject: [PATCH] zoom: fix CS write-check Thanks to Dennis Schafroth for spotting this. --- src/filter_zoom.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/filter_zoom.cpp b/src/filter_zoom.cpp index 8ca763b..79bec98 100644 --- a/src/filter_zoom.cpp +++ b/src/filter_zoom.cpp @@ -2103,7 +2103,7 @@ static bool wait_conn(COMSTACK cs, int secs) struct yaz_poll_fd pfd; yaz_poll_add(pfd.input_mask, yaz_poll_except); - if (cs->io_pending && CS_WANT_WRITE) + if (cs->io_pending & CS_WANT_WRITE) yaz_poll_add(pfd.input_mask, yaz_poll_write); if (cs->io_pending & CS_WANT_READ) yaz_poll_add(pfd.input_mask, yaz_poll_read); -- 1.7.10.4