summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPavel Březina <pbrezina@redhat.com>2012-08-02 11:55:55 +0200
committerJakub Hrozek <jhrozek@redhat.com>2012-08-06 14:51:07 +0200
commitabd079e56ca59ce8d6a04fe132d8c7c60f7e3b63 (patch)
tree82af7ec94ceeb816b7f1d7d2efe18bd4d2870afd /src
parent3ebf69a3a421a97aa0c27de1f90ea8bae64dc2b2 (diff)
downloadsssd_unused-abd079e56ca59ce8d6a04fe132d8c7c60f7e3b63.zip
sssd_unused-abd079e56ca59ce8d6a04fe132d8c7c60f7e3b63.tar.gz
sssd_unused-abd079e56ca59ce8d6a04fe132d8c7c60f7e3b63.tar.xz
shadow attributes can contain -1
https://fedorahosted.org/sssd/ticket/1393
Diffstat (limited to 'src')
-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 b9fef08..1fc5ebb 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;