Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions library.c
Original file line number Diff line number Diff line change
Expand Up @@ -4588,8 +4588,9 @@ redis_read_reply_type(RedisSock *redis_sock, REDIS_REPLY_TYPE *reply_type,
// Buffer to hold size information
char inbuf[255];

/* Read up to our newline */
if (redis_sock_get_line(redis_sock, inbuf, sizeof(inbuf), &nread) == NULL) {
/* Read up to our newline, failing if the line isn't terminated
* with \r\n (e.g. a read timeout in the middle of the line) */
if (redis_sock_gets(redis_sock, inbuf, sizeof(inbuf), &nread) < 0) {
return -1;
}

Expand Down
Loading