Fix plugin psk_key_get for v4

Signed-off-by: Matevz Mihalic <matevz.mihalic@gmail.com>
pull/1600/head
Matevz Mihalic 6 years ago committed by Roger A. Light
parent 46720b6b2a
commit f4832d8ef1

@ -752,7 +752,7 @@ int mosquitto_psk_key_get(struct mosquitto_db *db, struct mosquitto *context, co
}
for(i=0; i<opts->auth_plugin_config_count; i++){
if(opts->auth_plugin_configs[i].plugin.version == 3
if(opts->auth_plugin_configs[i].plugin.version == 4
&& opts->auth_plugin_configs[i].plugin.psk_key_get_v4){
rc = opts->auth_plugin_configs[i].plugin.psk_key_get_v4(

Loading…
Cancel
Save