Skip to content

Commit 891c50a

Browse files
committed
* FIX [mqtt_msg] add missing default value of new TLS CN & subject
Signed-off-by: Jaylin <jaylin@emqx.io>
1 parent 7f9bd04 commit 891c50a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/supplemental/mqtt/mqtt_msg.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1047,6 +1047,8 @@ nni_get_conn_param_from_msg(nni_msg *msg)
10471047
if ((conn_ctx = nng_alloc(sizeof(conn_param))) == NULL) {
10481048
return NULL;
10491049
}
1050+
conn_ctx->tls_peer_cn = NULL;
1051+
conn_ctx->tls_subject = NULL;
10501052
nni_atomic_init(&conn_ctx->refcnt);
10511053
nni_atomic_set(&conn_ctx->refcnt, 1);
10521054

0 commit comments

Comments
 (0)