summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorkan <kan@FreeBSD.org>2004-06-25 01:54:26 +0000
committerkan <kan@FreeBSD.org>2004-06-25 01:54:26 +0000
commite14478e0912584aa9e7bf00d0fad32578c1c3eb1 (patch)
tree0f72fc43eaf20ceeb4329babc262b07fba1059b1 /lib
parente5cdb48ecf2feafeb68697f0ca0b6fc451ad4a1f (diff)
downloadFreeBSD-src-e14478e0912584aa9e7bf00d0fad32578c1c3eb1.zip
FreeBSD-src-e14478e0912584aa9e7bf00d0fad32578c1c3eb1.tar.gz
Remove the use of cast as lvalue.
Diffstat (limited to 'lib')
-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 f6e1dc7..6b420c4 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) {
- (struct sockaddr *)haddr = res->ai_addr;
+ haddr = (struct sockaddr_in*)res->ai_addr;
error = rad_put_addr(radh, RAD_NAS_IP_ADDRESS,
haddr->sin_addr);
freeaddrinfo(res);
OpenPOWER on IntegriCloud