mirror of
https://github.com/haproxy/haproxy.git
synced 2026-06-09 00:32:33 -04:00
CLEANUP: mqtt: fix spelling of shared_subscription_available
The struct member 'shared_subsription_available' was misspelled (missing 'c' in 'subscription'). Let's fix it to ease maintenance.
This commit is contained in:
parent
82d723dd8e
commit
57c3e4b4e2
2 changed files with 4 additions and 4 deletions
|
|
@ -278,7 +278,7 @@ struct connack {
|
||||||
} user_props[MQTT_PROP_USER_PROPERTY_ENTRIES];
|
} user_props[MQTT_PROP_USER_PROPERTY_ENTRIES];
|
||||||
uint8_t wildcard_subscription_available;
|
uint8_t wildcard_subscription_available;
|
||||||
uint8_t subscription_identifiers_available;
|
uint8_t subscription_identifiers_available;
|
||||||
uint8_t shared_subsription_available;
|
uint8_t shared_subscription_available;
|
||||||
uint16_t server_keepalive;
|
uint16_t server_keepalive;
|
||||||
struct ist response_information;
|
struct ist response_information;
|
||||||
struct ist server_reference;
|
struct ist server_reference;
|
||||||
|
|
|
||||||
|
|
@ -671,7 +671,7 @@ struct ist mqtt_field_value(struct ist msg, int type, int fieldname_id)
|
||||||
case MQTT_FN_SHARED_SUBSCRIPTION_AVAILABLE:
|
case MQTT_FN_SHARED_SUBSCRIPTION_AVAILABLE:
|
||||||
if (mpkt.data.connack.var_hdr.protocol_version != MQTT_VERSION_5_0)
|
if (mpkt.data.connack.var_hdr.protocol_version != MQTT_VERSION_5_0)
|
||||||
goto not_found_or_invalid;
|
goto not_found_or_invalid;
|
||||||
if (!mqtt_uint2str(trash, mpkt.data.connack.var_hdr.props.shared_subsription_available))
|
if (!mqtt_uint2str(trash, mpkt.data.connack.var_hdr.props.shared_subscription_available))
|
||||||
goto not_found_or_invalid;
|
goto not_found_or_invalid;
|
||||||
res = ist2(trash->area, trash->data);
|
res = ist2(trash->area, trash->data);
|
||||||
goto end;
|
goto end;
|
||||||
|
|
@ -1140,9 +1140,9 @@ static int mqtt_parse_connack(struct ist parser, struct mqtt_pkt *mpkt)
|
||||||
case MQTT_PROP_SHARED_SUBSRIPTION_AVAILABLE:
|
case MQTT_PROP_SHARED_SUBSRIPTION_AVAILABLE:
|
||||||
if (fields & MQTT_FN_BIT_SHARED_SUBSCRIPTION_AVAILABLE)
|
if (fields & MQTT_FN_BIT_SHARED_SUBSCRIPTION_AVAILABLE)
|
||||||
goto end;
|
goto end;
|
||||||
props = mqtt_read_1byte_int(istnext(props), &mpkt->data.connack.var_hdr.props.shared_subsription_available);
|
props = mqtt_read_1byte_int(istnext(props), &mpkt->data.connack.var_hdr.props.shared_subscription_available);
|
||||||
/* can have only 2 values: 0 or 1 */
|
/* can have only 2 values: 0 or 1 */
|
||||||
if (mpkt->data.connack.var_hdr.props.shared_subsription_available > 1)
|
if (mpkt->data.connack.var_hdr.props.shared_subscription_available > 1)
|
||||||
goto end;
|
goto end;
|
||||||
fields |= MQTT_FN_BIT_SHARED_SUBSCRIPTION_AVAILABLE;
|
fields |= MQTT_FN_BIT_SHARED_SUBSCRIPTION_AVAILABLE;
|
||||||
break;
|
break;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue