aboutsummaryrefslogtreecommitdiff
path: root/modules/pam_pwhistory/pwhistory_config.c
diff options
context:
space:
mode:
Diffstat (limited to 'modules/pam_pwhistory/pwhistory_config.c')
-rw-r--r--modules/pam_pwhistory/pwhistory_config.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/modules/pam_pwhistory/pwhistory_config.c b/modules/pam_pwhistory/pwhistory_config.c
index 692cf80e..2399bf21 100644
--- a/modules/pam_pwhistory/pwhistory_config.c
+++ b/modules/pam_pwhistory/pwhistory_config.c
@@ -46,10 +46,10 @@
#include "pam_inline.h"
#include "pwhistory_config.h"
-#define PWHISTORY_DEFAULT_CONF SCONFIGDIR "/pwhistory.conf"
+#define PWHISTORY_DEFAULT_CONF SCONFIG_DIR "/pwhistory.conf"
-#ifdef VENDOR_SCONFIGDIR
-#define VENDOR_PWHISTORY_DEFAULT_CONF (VENDOR_SCONFIGDIR "/pwhistory.conf")
+#ifdef VENDOR_SCONFIG_DIR
+#define VENDOR_PWHISTORY_DEFAULT_CONF (VENDOR_SCONFIG_DIR "/pwhistory.conf")
#endif
void
@@ -124,6 +124,7 @@ parse_config_file(pam_handle_t *pamh, int argc, const char **argv,
if (*val != '/') {
pam_syslog (pamh, LOG_ERR,
"File path should be absolute: %s", val);
+ free(val);
} else {
options->filename = val;
}