net: mqtt: Fix typo "seg_tag_list"

Fix a typo in the mqtt_sec_config struct where it was "seg_tag_list"
instead of "sec_tag_list".

Signed-off-by: Martin Schwan <m.schwan@phytec.de>
This commit is contained in:
Martin Schwan 2019-01-10 09:13:20 +01:00 committed by Jukka Rissanen
parent 161fa14138
commit c5de716af4
3 changed files with 4 additions and 4 deletions

View File

@ -330,7 +330,7 @@ struct mqtt_sec_config {
u32_t sec_tag_count;
/** Indicates the list of security tags to be used for the session. */
sec_tag_t *seg_tag_list;
sec_tag_t *sec_tag_list;
/** Peer hostname for ceritificate verification.
* May be NULL to skip hostname verification.

View File

@ -280,7 +280,7 @@ static void client_init(struct mqtt_client *client)
tls_config->peer_verify = 2;
tls_config->cipher_list = NULL;
tls_config->seg_tag_list = m_sec_tags;
tls_config->sec_tag_list = m_sec_tags;
tls_config->sec_tag_count = ARRAY_SIZE(m_sec_tags);
#if defined(MBEDTLS_X509_CRT_PARSE_C)
tls_config->hostname = TLS_SNI_HOSTNAME;

View File

@ -55,9 +55,9 @@ int mqtt_client_tls_connect(struct mqtt_client *client)
}
}
if (tls_config->seg_tag_list != NULL && tls_config->sec_tag_count > 0) {
if (tls_config->sec_tag_list != NULL && tls_config->sec_tag_count > 0) {
ret = setsockopt(client->transport.tls.sock, SOL_TLS,
TLS_SEC_TAG_LIST, tls_config->seg_tag_list,
TLS_SEC_TAG_LIST, tls_config->sec_tag_list,
sizeof(sec_tag_t) * tls_config->sec_tag_count);
if (ret < 0) {
goto error;