]> git.saurik.com Git - apple/ipsec.git/blobdiff - ipsec-tools/racoon/isakmp_xauth.c
ipsec-292.40.4.tar.gz
[apple/ipsec.git] / ipsec-tools / racoon / isakmp_xauth.c
index ab4855f172ac19ff2a9514b55b7004ae02e1521e..d2e8d02d4ae0037b19b09ed1d591185922b5b972 100644 (file)
@@ -816,9 +816,9 @@ isakmp_xauth_set(iph1, attr)
                                                                        CONSTSTR("Xauth Failed (status not ok)"));
                        plog(ASL_LEVEL_ERR, 
                            "Xauth authentication failed\n");
-                               
+
                        vpncontrol_notify_ike_failed(VPNCTL_NTYPE_AUTHENTICATION_FAILED, FROM_LOCAL,
-                               ((struct sockaddr_in*)iph1->remote)->sin_addr.s_addr, 0, NULL);
+                               iph1_get_remote_v4_address(iph1), 0, NULL);
 
                        iph1->mode_cfg->flags |= ISAKMP_CFG_DELETE_PH1;