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.
This commit is contained in:
Aurelien DARRAGON 2023-02-22 09:26:41 +01:00 committed by Christopher Faulet
parent 21f7ebbfcd
commit 53eb6aecce

View File

@ -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 {