Skip to content

Commit

Permalink
Merge pull request #12944 from zhongwencool/mqtt-utf8-strict-mode
Browse files Browse the repository at this point in the history
fix: non-utf8 clientid connect event case crash if strict_mod=false
  • Loading branch information
zhongwencool committed May 9, 2024
2 parents 6e5d04e + 78095ef commit 107d00a
Show file tree
Hide file tree
Showing 6 changed files with 154 additions and 114 deletions.
2 changes: 1 addition & 1 deletion apps/emqx/src/emqx_connection.erl
Expand Up @@ -346,7 +346,7 @@ init_state(
max_size => emqx_config:get_zone_conf(Zone, [mqtt, max_packet_size])
},
ParseState = emqx_frame:initial_parse_state(FrameOpts),
Serialize = emqx_frame:serialize_opts(),
Serialize = emqx_frame:initial_serialize_opts(FrameOpts),
%% Init Channel
Channel = emqx_channel:init(ConnInfo, Opts),
GcState =
Expand Down

0 comments on commit 107d00a

Please sign in to comment.