summaryrefslogtreecommitdiffstats
path: root/lib/libpam
diff options
context:
space:
mode:
authorkan <kan@FreeBSD.org>2004-06-25 12:32:45 +0000
committerkan <kan@FreeBSD.org>2004-06-25 12:32:45 +0000
commit211c1eafc918219359bb552e2e7f4ec56ba116a1 (patch)
tree2ac6ffb60ace32e6d025b85f5962a07a5d168f1e /lib/libpam
parenteed5bcdf34cba0580dc3a4ed38dae5654eb980bf (diff)
downloadFreeBSD-src-211c1eafc918219359bb552e2e7f4ec56ba116a1.zip
FreeBSD-src-211c1eafc918219359bb552e2e7f4ec56ba116a1.tar.gz
Revert the last change. There are more 64bit platforms than amd64, and
they break due to diferent alignment restrictions.
Diffstat (limited to 'lib/libpam')
-rw-r--r--lib/libpam/modules/pam_radius/pam_radius.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libpam/modules/pam_radius/pam_radius.c b/lib/libpam/modules/pam_radius/pam_radius.c
index 6b420c4..f6e1dc7 100644
--- a/lib/libpam/modules/pam_radius/pam_radius.c
+++ b/lib/libpam/modules/pam_radius/pam_radius.c
@@ -111,7 +111,7 @@ build_access_request(struct rad_handle *radh, const char *user,
hints.ai_family = PF_INET;
if (getaddrinfo(nas_ipaddr, NULL, &hints, &res) == 0 &&
res != NULL) {
- haddr = (struct sockaddr_in*)res->ai_addr;
+ (struct sockaddr *)haddr = res->ai_addr;
error = rad_put_addr(radh, RAD_NAS_IP_ADDRESS,
haddr->sin_addr);
freeaddrinfo(res);
OpenPOWER on IntegriCloud