From 111bfef33c97cf40dc9c136f51b9f670e92d6145 Mon Sep 17 00:00:00 2001 From: William Lallemand Date: Tue, 21 Nov 2017 20:01:25 +0100 Subject: [PATCH] MEDIUM: shctx: use unsigned int for len and block_count Allows bigger objects to be cached in the shctx, the first implementation was only storing small ssl session, but we want to store bigger HTTP response. --- include/types/shctx.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/types/shctx.h b/include/types/shctx.h index afef1a107..559bebadb 100644 --- a/include/types/shctx.h +++ b/include/types/shctx.h @@ -21,8 +21,8 @@ /* generic shctx struct */ struct shared_block { struct list list; - short int len; /* data length for the row */ - short int block_count; /* number of blocks */ + unsigned int len; /* data length for the row */ + unsigned int block_count; /* number of blocks */ unsigned int refcount; unsigned char data[0]; };