From d4ebb60d65499ca5e2290eedcd02beb4736771ca Mon Sep 17 00:00:00 2001 From: Pieter Noordhuis Date: Thu, 21 Apr 2011 18:50:10 +0200 Subject: More OOM checks in the protocol reader --- hiredis.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hiredis.h') diff --git a/hiredis.h b/hiredis.h index 1655801..3a79e11 100644 --- a/hiredis.h +++ b/hiredis.h @@ -134,7 +134,7 @@ typedef struct redisReader { /* Public API for the protocol parser. */ redisReader *redisReaderCreate(void); void redisReaderFree(redisReader *r); -void redisReaderFeed(redisReader *r, const char *buf, size_t len); +int redisReaderFeed(redisReader *r, const char *buf, size_t len); int redisReaderGetReply(redisReader *r, void **reply); /* Backwards compatibility, can be removed on big version bump. */ -- cgit v1.2.3