summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAngelos D. Keromytis <angelos@cvs.openbsd.org>2001-03-06 22:17:22 +0000
committerAngelos D. Keromytis <angelos@cvs.openbsd.org>2001-03-06 22:17:22 +0000
commit171b7963b9338c8d9785f1142d134e6706fecc59 (patch)
treec5c8dc93f16f2bd3a37e07177c0ea3f9b9d10872
parent05b24a7aaa93f20af176cb6a6f2427a2605f8ec6 (diff)
Don't use the source for both sides!
-rw-r--r--sbin/isakmpd/udp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/isakmpd/udp.c b/sbin/isakmpd/udp.c
index d93d84b5120..682d954db1f 100644
--- a/sbin/isakmpd/udp.c
+++ b/sbin/isakmpd/udp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: udp.c,v 1.27 2001/01/27 12:03:36 niklas Exp $ */
+/* $OpenBSD: udp.c,v 1.28 2001/03/06 22:17:21 angelos Exp $ */
/* $EOM: udp.c,v 1.57 2001/01/26 10:09:57 niklas Exp $ */
/*
@@ -619,7 +619,7 @@ udp_decode_ids (struct transport *t)
}
#else
strcpy (idsrc, inet_ntoa (((struct udp_transport *)t)->src.sin_addr));
- strcpy (iddst, inet_ntoa (((struct udp_transport *)t)->src.sin_addr));
+ strcpy (iddst, inet_ntoa (((struct udp_transport *)t)->dst.sin_addr));
#endif /* HAVE_GETNAMEINFO */
sprintf (result, "src: %s dst: %s", idsrc, iddst);