diff options
author | Thorsten Kukuk <kukuk@thkukuk.de> | 2008-11-25 14:04:55 +0000 |
---|---|---|
committer | Thorsten Kukuk <kukuk@thkukuk.de> | 2008-11-25 14:04:55 +0000 |
commit | c7d0b27a8b9647e8c4f981541dab352761bb91d5 (patch) | |
tree | 2402b615dae6daa7b3e00b19f549db0169019fb9 /modules | |
parent | e62f525c07e14cda70f9683c7f34bcce45c85db9 (diff) | |
download | pam-c7d0b27a8b9647e8c4f981541dab352761bb91d5.tar.gz pam-c7d0b27a8b9647e8c4f981541dab352761bb91d5.tar.bz2 pam-c7d0b27a8b9647e8c4f981541dab352761bb91d5.zip |
Relevant BUGIDs: debian #326407
Purpose of commit: bugfix
Commit summary:
---------------
2008-11-25 Thorsten Kukuk <kukuk@thkukuk.de>
* modules/pam_time/pam_time.c (is_same): Fix check
of correct string length (debian bug #326407).
Diffstat (limited to 'modules')
-rw-r--r-- | modules/pam_time/pam_time.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/pam_time/pam_time.c b/modules/pam_time/pam_time.c index 8e3b2486..7e418808 100644 --- a/modules/pam_time/pam_time.c +++ b/modules/pam_time/pam_time.c @@ -358,8 +358,8 @@ is_same(pam_handle_t *pamh UNUSED, const void *A, const char *b, /* Ok, we know that b is a substring from A and does not contain wildcards, but now the length of both strings must be the same, - too. */ - if (strlen (a) != strlen(b)) + too. In this case it means, a[i] has to be the end of the string. */ + if (a[i] != '\0') return FALSE; return ( !len ); |