]> jfr.im git - solanum.git/commitdiff
ident: use new *_addr fields
authorElizabeth Myers <redacted>
Wed, 23 Mar 2016 23:58:56 +0000 (18:58 -0500)
committerElizabeth Myers <redacted>
Wed, 23 Mar 2016 23:58:56 +0000 (18:58 -0500)
authd/providers/ident.c

index a610cfe50d33dac50068a68e2830f06b815dbd71..8c586bed7adaa10dd60dea6f739efb7d8003eabd 100644 (file)
@@ -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