diff options
author | Gerald Carter <jerry@samba.org> | 1999-01-13 00:40:04 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 1999-01-13 00:40:04 +0000 |
commit | 7ff9823689638b1a7f82c277a6c825f4ac883d96 (patch) | |
tree | 739bafba4ad6b66fd71fd38c93a818a4667c9a36 /source3/lib/util_pwdb.c | |
parent | a75a4daafd86f162c2c79f1b0ece373e7bcb7f65 (diff) | |
download | samba-7ff9823689638b1a7f82c277a6c825f4ac883d96.tar.gz samba-7ff9823689638b1a7f82c277a6c825f4ac883d96.tar.bz2 samba-7ff9823689638b1a7f82c277a6c825f4ac883d96.zip |
fixed an uninitialized variable in lookupsmbgrpgid() and
lookupsmbpwuid that was causing a SEGFAULT in smbd.
(This used to be commit cabc7e739cb6a6c8dfc4b6988a8ef5837e3312d2)
Diffstat (limited to 'source3/lib/util_pwdb.c')
-rw-r--r-- | source3/lib/util_pwdb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/util_pwdb.c b/source3/lib/util_pwdb.c index a2e1ac010d..6a37f1bf74 100644 --- a/source3/lib/util_pwdb.c +++ b/source3/lib/util_pwdb.c @@ -318,7 +318,7 @@ static time_t get_time_from_string(const char *p) time_t pwdb_get_last_set_time(const char *p) { - if (*p && StrnCaseCmp(p, "LCT-", 4)) + if (*p && !StrnCaseCmp(p, "LCT-", 4)) { return get_time_from_string(p + 4); } |