summaryrefslogtreecommitdiffstats
path: root/src/ccapi/server/ccs_ccache.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ccapi/server/ccs_ccache.c')
-rw-r--r--src/ccapi/server/ccs_ccache.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/ccapi/server/ccs_ccache.c b/src/ccapi/server/ccs_ccache.c
index aaeed9796..dfe668633 100644
--- a/src/ccapi/server/ccs_ccache.c
+++ b/src/ccapi/server/ccs_ccache.c
@@ -991,8 +991,12 @@ cc_int32 ccs_ccache_handle_message (ccs_pipe_t in_client_pipe,
if (!err) {
*out_will_block = will_block;
- *out_reply_data = reply_data;
- reply_data = NULL; /* take ownership */
+ if (!will_block) {
+ *out_reply_data = reply_data;
+ reply_data = NULL; /* take ownership */
+ } else {
+ *out_reply_data = NULL;
+ }
}
cci_stream_release (reply_data);