Fix heap use after free in password-file plugin

Unreleased code.

Closes oss-fuzz #462551340.
This commit is contained in:
Roger A. Light
2025-12-09 13:25:34 +00:00
parent 413d84b91d
commit 30ee4a2d3e
+2
View File
@@ -51,6 +51,8 @@ int password_file__parse(struct password_file_data *data)
while(!feof(pwfile)){
if(mosquitto_fgets(&buf, &buflen, pwfile)){
unpwd = NULL;
if(buf[0] == '#'){
continue;
}