提交 8f0f6f64 编写于 作者: J jepickett

Merge pull request #58 from Gusi/2.6

BUGFIX: in redisAsyncConnect an invalid context pointer was being used ...
......@@ -156,6 +156,7 @@ redisAsyncContext *redisAsyncConnect(const char *ip, int port) {
struct sockaddr_in sa;
redisContext *c = redisPreConnectNonBlock(ip, port, &sa);
redisAsyncContext *ac = redisAsyncInitialize(c);
c = &(ac->c);
if (aeWinSocketConnect(c->fd, (struct sockaddr *)&sa, sizeof(sa)) != 0) {
c->err = errno;
strerror_r(errno,c->errstr,sizeof(c->errstr));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册