diff --git a/include/proto/spoe.h b/include/proto/spoe.h index 1372a7d45..002cf7d76 100644 --- a/include/proto/spoe.h +++ b/include/proto/spoe.h @@ -92,7 +92,7 @@ spoe_encode_frag_buffer(const char *str, size_t len, char **buf, char *end) * On success, it returns the buffer length and <*buf> is moved after the * encoded buffer. Otherwise, it returns -1. */ static inline int -spoe_decode_buffer(char **buf, char *end, char **str, size_t *len) +spoe_decode_buffer(char **buf, char *end, char **str, uint64_t *len) { char *p = *buf; uint64_t sz; @@ -248,8 +248,7 @@ spoe_skip_data(char **buf, char *end) { char *str, *p = *buf; int type, ret; - size_t sz; - uint64_t v; + uint64_t v, sz; if (p >= end) return -1; @@ -296,7 +295,7 @@ spoe_decode_data(char **buf, char *end, struct sample *smp) { char *str, *p = *buf; int type, r = 0; - size_t sz; + uint64_t sz; if (p >= end) return -1; diff --git a/src/flt_spoe.c b/src/flt_spoe.c index 5d5744777..1a8bd2c0f 100644 --- a/src/flt_spoe.c +++ b/src/flt_spoe.c @@ -655,7 +655,7 @@ spoe_handle_agenthello_frame(struct appctx *appctx, char *frame, size_t size) vsn = max_frame_size = flags = 0; while (p < end) { char *str; - size_t sz; + uint64_t sz; int ret; /* Decode the item key */ @@ -836,7 +836,7 @@ spoe_handle_agentdiscon_frame(struct appctx *appctx, char *frame, size_t size) /* Loop on K/V items */ while (p < end) { char *str; - size_t sz; + uint64_t sz; int ret; /* Decode the item key */