From 6cd3964de7a2c90f9b9f9bde40ac7edd1179fbdf Mon Sep 17 00:00:00 2001 From: Elizabeth Myers Date: Wed, 23 Mar 2016 18:58:56 -0500 Subject: [PATCH] ident: use new *_addr fields --- authd/providers/ident.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/authd/providers/ident.c b/authd/providers/ident.c index a610cfe5..8c586bed 100644 --- a/authd/providers/ident.c +++ b/authd/providers/ident.c @@ -97,12 +97,8 @@ bool ident_start(struct auth_client *auth) query->F = F; /* Build sockaddr_storages for rb_connect_tcp below */ - if(!rb_inet_pton_sock(auth->l_ip, (struct sockaddr *)&l_addr, sizeof(l_addr)) || - !rb_inet_pton_sock(auth->c_ip, (struct sockaddr)&c_addr, sizeof(c_addr))) - { - client_fail(auth, REPORT_FAIL); - return true; - } + memcpy(&l_addr, auth->l_addr, sizeof(l_addr)); + memcpy(&c_addr, auth->c_addr, sizeof(c_addr)); /* Set the ports correctly */ #ifdef RB_IPV6