mirror of
https://github.com/eclipse-mosquitto/mosquitto.git
synced 2026-02-06 02:52:07 +08:00
Fix incorrect memory free when finding duplicate username
Fix oss-fuzz #468922225. Unreleased changes.
This commit is contained in:
@@ -74,6 +74,7 @@ int password_file__parse(struct password_file_data *data)
|
||||
|
||||
HASH_FIND(hh, data->unpwd, username, strlen(username), unpwd);
|
||||
if(unpwd){
|
||||
unpwd = NULL;
|
||||
mosquitto_log_printf(MOSQ_LOG_ERR, "password-file: Error: Duplicate user '%s' in password file '%s'.", username, data->password_file);
|
||||
goto error;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user