Skip to content

Commit

Permalink
* MDF [webserver] fix wrong return value
Browse files Browse the repository at this point in the history
Signed-off-by: jaylin <jaylin@emqx.io>
  • Loading branch information
JaylinYu committed Nov 7, 2023
1 parent a9517d5 commit b115028
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nanomq/web_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ rest_start(uint16_t port)
snprintf(rest_addr, sizeof(rest_addr), REST_URL, port);
if ((rv = nng_url_parse(&url, rest_addr)) != 0) {
log_error("nng_url_parse %s failed ", rest_addr);
return NNG_ECANCELED;
return;
}

// Create the REQ socket, and put it in raw mode, connected to
Expand Down

0 comments on commit b115028

Please sign in to comment.