Skip to content

Commit

Permalink
Fix plugin psk_key_get for v4
Browse files Browse the repository at this point in the history
Signed-off-by: Matevz Mihalic <[email protected]>
  • Loading branch information
matevzmihalic committed Jun 17, 2019
1 parent 1d6aa9f commit 0a5fbc4
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 0a5fbc4

Please sign in to comment.