summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSumit Bose <sbose@redhat.com>2010-12-14 11:14:26 +0100
committerStephen Gallagher <sgallagh@redhat.com>2010-12-14 17:13:29 -0500
commit42165bd9ada160e68ab0dbdeb21ed397486aa830 (patch)
tree16794d98a11c8a526e23905a78bd3f2d0c9310ac /src
parent223769ba5c8d6e1ef3deb35c9b397387968e1417 (diff)
downloadsssd-42165bd9ada160e68ab0dbdeb21ed397486aa830.tar.gz
sssd-42165bd9ada160e68ab0dbdeb21ed397486aa830.tar.bz2
sssd-42165bd9ada160e68ab0dbdeb21ed397486aa830.zip
Fix uninitialized value error in sdap_account_expired_shadow()
https://fedorahosted.org/sssd/ticket/726
Diffstat (limited to 'src')
-rw-r--r--src/providers/ldap/ldap_common.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/providers/ldap/ldap_common.c b/src/providers/ldap/ldap_common.c
index 302cfc6b..9945b4b1 100644
--- a/src/providers/ldap/ldap_common.c
+++ b/src/providers/ldap/ldap_common.c
@@ -783,9 +783,9 @@ errno_t string_to_shadowpw_days(const char *s, long *d)
return EINVAL;
}
- if (*d < -1) {
+ if (l < 0) {
DEBUG(1, ("Input string contains not allowed negative value [%d].\n",
- *d));
+ l));
return EINVAL;
}