Skip to content

Commit

Permalink
Don't attempt to take ZSTR_VAL(NULL) (#1804)
Browse files Browse the repository at this point in the history
Fixes #1798
  • Loading branch information
michael-grunder committed Jul 2, 2020
1 parent 83a1b7c commit ff2e160
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion redis_session.c
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,8 @@ PS_OPEN_FUNC(redis)
}

redis_sock = redis_sock_create(addr, addrlen, port, timeout, read_timeout,
persistent, ZSTR_VAL(persistent_id), retry_interval);
persistent, persistent_id ? ZSTR_VAL(persistent_id) : NULL,
retry_interval);

redis_pool_add(pool, redis_sock, weight, db);
redis_sock->prefix = prefix;
Expand Down

0 comments on commit ff2e160

Please sign in to comment.