Should error on empty protocol config.

This commit is contained in:
Roger A. Light
2022-01-03 00:44:16 +00:00
parent b45c7ebacd
commit e4ab1cf213

View File

@@ -2102,6 +2102,7 @@ static int config__read_file_core(struct mosquitto__config *config, bool reload,
}
}else{
log__printf(NULL, MOSQ_LOG_ERR, "Error: Empty protocol value in configuration.");
return MOSQ_ERR_INVAL;
}
}else if(!strcmp(token, "psk_file")){
#ifdef FINAL_WITH_TLS_PSK