*out = NULL;
+#ifndef NDEBUG
+ memset(replies, 0, sizeof(replies));
+#endif
+
va_start(ap, cmd);
for (s_ret = fr_redis_cluster_state_init(&state, &conn, cluster, request, key, key_len, false);
conn);
if (status != REDIS_RCODE_NO_SCRIPT) continue;
+ /*
+ * Clear out the existing reply
+ */
+ fr_redis_pipeline_free(replies, reply_cnt);
+
/*
* Last command failed with NOSCRIPT, this means
* we have to send the Lua script up to the node
tmp.type = FR_TYPE_UINT32;
if (fr_value_box_cast(NULL, &ip_map.rhs->tmpl_value, FR_TYPE_IPV4_ADDR,
- NULL, &tmp)) {
+ NULL, &tmp)) {
RPEDEBUG("Failed converting integer to IPv4 address");
ret = IPPOOL_RCODE_FAIL;
goto finish;