summaryrefslogtreecommitdiffstats
path: root/src/providers/ldap/ldap_common.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/providers/ldap/ldap_common.c')
-rw-r--r--src/providers/ldap/ldap_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/providers/ldap/ldap_common.c b/src/providers/ldap/ldap_common.c
index b9fef086..1fc5ebb5 100644
--- a/src/providers/ldap/ldap_common.c
+++ b/src/providers/ldap/ldap_common.c
@@ -1290,7 +1290,7 @@ errno_t string_to_shadowpw_days(const char *s, long *d)
return EINVAL;
}
- if (l < 0) {
+ if (l < -1) {
DEBUG(1, ("Input string contains not allowed negative value [%d].\n",
l));
return EINVAL;