Skip to content

Commit

Permalink
Merge pull request #1313 from matevzmihalic/fix-plugin-psk-v4
Browse files Browse the repository at this point in the history
Fix plugin psk_key_get for v4
  • Loading branch information
ralight committed Jun 18, 2019
2 parents 1d6aa9f + 0a5fbc4 commit 5417467
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/security.c
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 5417467

Please sign in to comment.