From 0c6ef1be6e127bb4841da3b2aea11c0a2b1a3166 Mon Sep 17 00:00:00 2001 From: Kevin ORourke Date: Wed, 1 Oct 2025 15:43:13 +0200 Subject: [PATCH] net: mqtt: Remove misleading comment Setting the peer hostname to NULL does not skip hostname verification. After discussion in the issue it was agreed that it's better to remove this comment than to implement skipping hostname verification. Also fixed a typo in the remaining part of the comment. Fixes: #96853 Signed-off-by: Kevin ORourke --- include/zephyr/net/mqtt.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/include/zephyr/net/mqtt.h b/include/zephyr/net/mqtt.h index b992714afd32b..a6864d676fbe7 100644 --- a/include/zephyr/net/mqtt.h +++ b/include/zephyr/net/mqtt.h @@ -763,9 +763,7 @@ struct mqtt_sec_config { uint32_t alpn_protocol_name_count; #endif - /** Peer hostname for ceritificate verification. - * May be NULL to skip hostname verification. - */ + /** Peer hostname for certificate verification. */ const char *hostname; /** Indicates the preference for copying certificates to the heap. */