minor update to check the gpg keyring path setting in access stanzas only if a decrypt password is specified

git-svn-id: file:///home/mbr/svn/fwknop/trunk@254 510a4753-2344-4c79-9c09-4d669213fbeb
This commit is contained in:
Michael Rash 2010-07-11 12:37:31 +00:00
parent 05fdf6f319
commit eed35a8f1c

View File

@ -576,7 +576,7 @@ set_acc_defaults(fko_srv_options_t *opts)
/* set default gpg keyring path if necessary
*/
if(acc->gpg_home_dir == NULL)
if(acc->gpg_decrypt_pw != NULL && acc->gpg_home_dir == NULL)
add_acc_string(&(acc->gpg_home_dir), opts->config[CONF_GPG_HOME_DIR]);
acc = acc->next;