From: Aurelien DARRAGON Date: Wed, 22 Feb 2023 08:26:41 +0000 (+0100) Subject: BUG/MINOR: event_hdl: fix rid storage type X-Git-Tag: v2.8-dev7~37 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=53eb6aecce86cd954f74050f949785d593a0b0e4;p=thirdparty%2Fhaproxy.git BUG/MINOR: event_hdl: fix rid storage type rid is stored as a uint32_t within struct server, but it was stored as a signed int within the server event data struct. Switching from signed int to uint32_t in event_hdl_cb_data_server struct to make sure it won't overflow. If 129ecf441 ("MINOR: server/event_hdl: add support for SERVER_ADD and SERVER_DEL events") is being backported, then this commit should be backported with it. --- diff --git a/include/haproxy/server-t.h b/include/haproxy/server-t.h index d3e49d81fa..e7f7747629 100644 --- a/include/haproxy/server-t.h +++ b/include/haproxy/server-t.h @@ -430,7 +430,7 @@ struct event_hdl_cb_data_server { char name[64]; /* server name/id */ char proxy_name[64]; /* id of proxy the server belongs to */ int puid; /* proxy-unique server ID */ - int rid; /* server id revision */ + uint32_t rid; /* server id revision */ unsigned int flags; /* server flags */ } safe; struct {