@ostap0207 commented on this pull request.


In src/modules/statsd/statsd.c:

>  }
 
 static int ki_statsd_decr_with_labels(sip_msg_t *msg, str *key, str *labels)
 {
-	return statsd_count(key->s, "-1", labels->s);
+	return convert_result(statsd_count(key->s, "-1", labels->s));
+}
+
+static int convert_result(bool result)
+{
+	if(result == false) {
+		return -1;
+	}
+
+	return 0;

Yes, correct, we noticed this in our local build but haven't updated here yet, will fix


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <kamailio/kamailio/pull/3819/review/2023554048@github.com>