Skip to content

Commit

Permalink
fixed one bug in redis_command::run() if request_buf_ is NULL.
Browse files Browse the repository at this point in the history
  • Loading branch information
zhengshuxin committed Jul 9, 2022
1 parent cd10474 commit 1898cb0
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ endif
##############################################################################

.PHONY = check help all_lib all samples all clean install uninstall uninstall_all build_one
VERSION = 3.5.3-14
VERSION = 3.5.3-15

default: build_one acl_master
help h:
Expand Down
2 changes: 1 addition & 1 deletion lib_acl/src/init/acl_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

#include "init.h"

static char *version = "3.5.3-14 20220615-15:00";
static char *version = "3.5.3-15 20220709-17:38";

const char *acl_version(void)
{
Expand Down
Empty file modified lib_acl_cpp/samples/redis/redis_pubsub/valgrind.sh
100644 → 100755
Empty file.
6 changes: 6 additions & 0 deletions lib_acl_cpp/src/redis/redis_command.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -387,8 +387,14 @@ const redis_result* redis_command::run(size_t nchild /* = 0 */,
conn_->set_check_addr(check_addr_);

if (slice_req_) {
if (request_obj_ == NULL) {
request_obj_ = NEW redis_request();
}
result_ = conn_->run(dbuf_, *request_obj_, nchild, timeout);
} else {
if (request_buf_ == NULL) {
request_buf_ = NEW string(128);
}
result_ = conn_->run(dbuf_, *request_buf_, nchild, timeout);
}
return result_;
Expand Down
7 changes: 6 additions & 1 deletion packaging/acl-libs.spec
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
%define release_id 14
%define release_id 15

Summary: The powerful c/c++ library
Name: acl-libs
Expand Down Expand Up @@ -47,6 +47,11 @@ rm -rf %{buildroot}

%changelog

* Sat Jul 09 2022 shuxin.zheng shuxin.zheng@qq.com 3.5.3-15-20220709.17
- bugfix: fixed one crash bug that redis_command::request_buf_ will be NULL
when calling redis_pubsub::get_message() first without calling
redis_pubsub::subscribe() before.

* Wed Jun 15 2022 shuxin.zheng shuxin.zheng@qq.com 3.5.3-14-20220615.15
- bugfix: fixed one bug in redis_client_pipeline.cpp about handling redirect message.

Expand Down

0 comments on commit 1898cb0

Please sign in to comment.