Revert the last change. There are more 64bit platforms than amd64, and

they break due to diferent alignment restrictions.
This commit is contained in:
Alexander Kabaev 2004-06-25 12:32:45 +00:00
parent ace18b764a
commit 2758535974

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