From abd079e56ca59ce8d6a04fe132d8c7c60f7e3b63 Mon Sep 17 00:00:00 2001 From: Pavel Březina Date: Thu, 2 Aug 2012 11:55:55 +0200 Subject: shadow attributes can contain -1 https://fedorahosted.org/sssd/ticket/1393 --- src/providers/ldap/ldap_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; -- cgit