From 7c6af783e54f3321bf9cebdec99b32f1088f21ff Mon Sep 17 00:00:00 2001 From: sobomax Date: Wed, 12 Nov 2003 23:36:17 +0000 Subject: Fix on sparc64. Reported by: rwatson/tinderbox MFC after: 2 weeks --- lib/libpam/modules/pam_radius/pam_radius.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/libpam/modules') diff --git a/lib/libpam/modules/pam_radius/pam_radius.c b/lib/libpam/modules/pam_radius/pam_radius.c index 5bb65ec..cf81951 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); -- cgit v1.1