Change the reason code in will topic acl check (#2168)

This chang the reason code to not authorized code.
This commit is contained in:
Gilbert 2019-01-21 09:49:29 +08:00 committed by turtleDeng
parent b8929a46c1
commit 067d28dcb6
1 changed files with 2 additions and 2 deletions

View File

@ -821,7 +821,7 @@ check_will_acl(#mqtt_packet_connect{will_topic = WillTopic}, PState) ->
allow -> ok;
deny ->
?LOG(warning, "Will message (to ~s) validation failed, acl denied", [WillTopic]),
{error, ?RC_UNSPECIFIED_ERROR}
{error, ?RC_NOT_AUTHORIZED}
end.
check_publish(Packet, PState) ->