Because conn.want_ext is a uint64_t, copying it into a uint32_t may result
in truncating it's value. This patch fixes a bug in do_init() where the
32 bits copy is again converted into a 64 bits value, because it will be
used in convert_to_conn_want_ext().
Signed-off-by: Luis Henriques <luis@igalia.com>
se->got_init = 1;
if (se->op.init) {
- uint32_t want_ext_default = se->conn.want_ext;
+ uint64_t want_ext_default = se->conn.want_ext;
int rc;
// Apply the first 32 bits of capable_ext to capable