Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ralight committed Apr 24, 2024
1 parent 4dee316 commit 08b6cdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/mosquitto_ctrl/options.c
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ static int client_config_line_proc(struct mosq_config *cfg, int *argc, char **ar
if(tmp) {
*tmp++ = 0;
if(strlen(tmp) == 0){
url = NULL; /* Prevent free of non-heap memory later */
cfg->host = NULL; /* Prevent free of non-heap memory later */
fprintf(stderr, "Error: Empty port in URL.\n");
return 1;
}
Expand Down

0 comments on commit 08b6cdd

Please sign in to comment.