* MDF [sub_handler] return err_code in suback when ACL failed
@@ -248,9 +248,9 @@ sub_ctx_handle(nano_work *work)
if (!auth_result) {
log_warn("acl deny");
+ tn->reason_code = NMQ_AUTH_SUB_ERROR;
if (work->config->acl_deny_action == ACL_DISCONNECT) {
log_warn("acl deny, disconnect client");
- // TODO disconnect client or return error code
goto next;
}
} else {
