diff options
author | Thorsten Kukuk <kukuk@thkukuk.de> | 2007-08-29 14:51:23 +0000 |
---|---|---|
committer | Thorsten Kukuk <kukuk@thkukuk.de> | 2007-08-29 14:51:23 +0000 |
commit | 7fcf0cda4797133807a67fab4c5b46c09f2f0452 (patch) | |
tree | a3a8d33c9ae1b0e5e036d5d1f6b57c7102d61a25 /modules/pam_rhosts | |
parent | d4663ceaeb052c28354afc212da8f25dbc53e969 (diff) | |
download | pam-7fcf0cda4797133807a67fab4c5b46c09f2f0452.tar.gz pam-7fcf0cda4797133807a67fab4c5b46c09f2f0452.tar.bz2 pam-7fcf0cda4797133807a67fab4c5b46c09f2f0452.zip |
Relevant BUGIDs:
Purpose of commit: bugfix
Commit summary:
---------------
2007-08-29 Thorsten Kukuk <kukuk@thkukuk.de>
* modules/pam_rhosts/pam_rhosts_auth.c: buflen needs to be size_t.
(__icheckhost): Cast to int32_t to fix limited range error.
* modules/pam_cracklib/pam_cracklib.c: Mark cracklib_dictpath
as const.
Diffstat (limited to 'modules/pam_rhosts')
-rw-r--r-- | modules/pam_rhosts/pam_rhosts_auth.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/pam_rhosts/pam_rhosts_auth.c b/modules/pam_rhosts/pam_rhosts_auth.c index a798c1f0..48fdeced 100644 --- a/modules/pam_rhosts/pam_rhosts_auth.c +++ b/modules/pam_rhosts/pam_rhosts_auth.c @@ -267,7 +267,7 @@ __icheckhost (pam_handle_t *pamh, struct _options *opts, u_int32_t raddr /* Try for raw ip address first. */ - if (isdigit(*lhost) && (long)(laddr = inet_addr(lhost)) != -1) + if (isdigit(*lhost) && (int32_t)(laddr = inet_addr(lhost) != -1)) return (negate*(! (raddr ^ laddr))); /* Better be a hostname. */ @@ -350,7 +350,7 @@ __ivaliduser (pam_handle_t *pamh, struct _options *opts, int retval = 1; #ifdef HAVE_GETLINE char *buf=NULL; - int buflen=0; + size_t buflen=0; while (getline(&buf,&buflen,hostf) > 0) { #else |