diff options
author | Arran Cudbard-Bell <a.cudbardb@freeradius.org> | 2013-02-25 06:44:57 -0800 |
---|---|---|
committer | Arran Cudbard-Bell <a.cudbardb@freeradius.org> | 2013-02-25 06:44:57 -0800 |
commit | a2ca57fe96acd9e74a4ecd2621d9320deb68c834 (patch) | |
tree | 28c97b89170cdf67a1ab04bf01dbecb407cce45b /pam_radius_auth.c | |
parent | c61a218efb2a0ec4f493bcc9fa735306f779ea64 (diff) | |
parent | cfc79fd0f796d3b6f9133def44ae79e10c2a0fd4 (diff) | |
download | libpam-radius-auth-a2ca57fe96acd9e74a4ecd2621d9320deb68c834.tar.gz libpam-radius-auth-a2ca57fe96acd9e74a4ecd2621d9320deb68c834.zip |
Merge pull request #4 from gentoo/master
Build fixes from Gentoo
Diffstat (limited to 'pam_radius_auth.c')
-rw-r--r-- | pam_radius_auth.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/pam_radius_auth.c b/pam_radius_auth.c index abea995..11bec48 100644 --- a/pam_radius_auth.c +++ b/pam_radius_auth.c @@ -766,7 +766,8 @@ static int talk_radius(radius_conf_t *conf, AUTH_HDR *request, AUTH_HDR *response, char *password, char *old_password, int tries) { - int salen, total_length; + socklen_t salen; + int total_length; fd_set set; struct timeval tv; time_t now, end; @@ -881,7 +882,7 @@ send: } else if (FD_ISSET(conf->sockfd, &set)) { /* try to receive some data */ - if ((total_length = recvfrom(conf->sockfd, (char *) response, + if ((total_length = recvfrom(conf->sockfd, (void *) response, BUFFER_SIZE, 0, &saremote, &salen)) < 0) { _pam_log(LOG_ERR, "error reading RADIUS packet from server %s: %s", @@ -1062,7 +1063,7 @@ PAM_EXTERN int pam_sm_authenticate(pam_handle_t *pamh,int flags,int argc,CONST char **argv) { CONST char *user; - CONST char **userinfo; + CONST char *userinfo; char *password = NULL; CONST char *rhost; char *resp2challenge = NULL; |