From 97056403bdb7c18abe9c1e8e0824e3a64123c4c2 Mon Sep 17 00:00:00 2001 From: Jonathan Rajotte Date: Wed, 14 Mar 2018 14:54:21 -0400 Subject: [PATCH] Fix: use signed variable for refcounting of consumer_relayd_sock_pair MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Otherwise refcount check after decreasing have no meaning as in consumer_stream_relayd_close function. Signed-off-by: Jonathan Rajotte Signed-off-by: Jérémie Galarneau --- src/common/consumer/consumer.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/consumer/consumer.h b/src/common/consumer/consumer.h index af36de11c..acdc4b839 100644 --- a/src/common/consumer/consumer.h +++ b/src/common/consumer/consumer.h @@ -473,7 +473,7 @@ struct consumer_relayd_sock_pair { /* Network sequence number. */ uint64_t net_seq_idx; /* Number of stream associated with this relayd */ - unsigned int refcount; + int refcount; /* * This flag indicates whether or not we should destroy this object. The -- 2.34.1