summaryrefslogtreecommitdiff
path: root/sbin/isakmpd
diff options
context:
space:
mode:
authorAngelos D. Keromytis <angelos@cvs.openbsd.org>2001-06-07 08:14:22 +0000
committerAngelos D. Keromytis <angelos@cvs.openbsd.org>2001-06-07 08:14:22 +0000
commit1820b8d344e8b4889dec0788b3368b9772d61be9 (patch)
tree443278e383b75963fadc60782e5b554c10dadb2e /sbin/isakmpd
parent128b65d61c45bcd449f55ff9a8f112c5a9877eca (diff)
Print the right port on error message.
Diffstat (limited to 'sbin/isakmpd')
-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 7ccfae66193..f1121c20c43 100644
--- a/sbin/isakmpd/udp.c
+++ b/sbin/isakmpd/udp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: udp.c,v 1.29 2001/04/09 22:09:53 ho Exp $ */
+/* $OpenBSD: udp.c,v 1.30 2001/06/07 08:14:21 angelos Exp $ */
/* $EOM: udp.c,v 1.57 2001/01/26 10:09:57 niklas Exp $ */
/*
@@ -334,7 +334,7 @@ udp_bind_if (struct ifreq *ifrp, void *arg)
if (!t)
{
log_print ("udp_bind_if: failed to create a socket on %s:%d",
- inet_ntoa (*((struct in_addr *)&if_addr)), port);
+ inet_ntoa (*((struct in_addr *)&if_addr)), ntohs (port));
return;
}
LIST_INSERT_HEAD (&udp_listen_list, (struct udp_transport *)t, link);