fr_assert(conn);
memset(state, 0, sizeof(*state));
+ *conn = NULL; /* Better safe than exploding */
used_nodes = rbtree_num_elements(cluster->used_nodes);
if (used_nodes == 0) {
return REDIS_RCODE_SUCCESS;
case REDIS_REPLY_ERROR:
+ /*
+ * May indicate the connection handle is bad.
+ */
+ fr_assert_msg(reply->str, "Error response contained no error string");
+
fr_strerror_printf("Server error: %s", reply->str);
if (strncmp(REDIS_ERROR_MOVED_STR, reply->str, sizeof(REDIS_ERROR_MOVED_STR) - 1) == 0) {
return REDIS_RCODE_MOVE;