From: William Lallemand Date: Tue, 21 Nov 2017 19:01:25 +0000 (+0100) Subject: MEDIUM: shctx: use unsigned int for len and block_count X-Git-Tag: v1.8.0~68 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=111bfef33c97cf40dc9c136f51b9f670e92d6145;p=thirdparty%2Fhaproxy.git 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. --- diff --git a/include/types/shctx.h b/include/types/shctx.h index afef1a107c..559bebadb5 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]; };