Skip to content

Commit

Permalink
Bytes is no long-term safe
Browse files Browse the repository at this point in the history
  • Loading branch information
powersj committed Jun 5, 2024
1 parent 6063b52 commit 59805e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/common/mqtt/mqtt_v5.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ func (m *mqttv5Client) Connect() (bool, error) {
}
defer pass.Destroy()
m.options.ConnectUsername = user.String()
m.options.ConnectPassword = pass.Bytes()
m.options.ConnectPassword = []byte(pass.String())

if m.clientTrace {
log := mqttLogger{logger.NewLogger("paho", "", "")}
Expand Down

0 comments on commit 59805e4

Please sign in to comment.