Fix on sparc64.

Reported by:	rwatson/tinderbox
MFC after:	2 weeks
This commit is contained in:
Maxim Sobolev 2003-11-12 23:36:17 +00:00
parent 2683ceb661
commit cd28f89c12

View file

@ -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);