summaryrefslogtreecommitdiff
path: root/sbin/isakmpd/udp.c
diff options
context:
space:
mode:
authorNiklas Hallqvist <niklas@cvs.openbsd.org>1999-04-30 11:47:00 +0000
committerNiklas Hallqvist <niklas@cvs.openbsd.org>1999-04-30 11:47:00 +0000
commitd1a20e42bc9b16f64e38563a1a62d2637524d456 (patch)
tree7c4a19516888ed233ab9e86761675d8c65b52f06 /sbin/isakmpd/udp.c
parent7527020bb03f711d9c409562403e9d24286ff216 (diff)
Merge with EOM 1.40
author: niklas inet_ntoa returns a static, do not call twice in an expression
Diffstat (limited to 'sbin/isakmpd/udp.c')
-rw-r--r--sbin/isakmpd/udp.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/sbin/isakmpd/udp.c b/sbin/isakmpd/udp.c
index c2232eb046e..69f61dcb666 100644
--- a/sbin/isakmpd/udp.c
+++ b/sbin/isakmpd/udp.c
@@ -1,5 +1,5 @@
-/* $OpenBSD: udp.c,v 1.12 1999/04/27 21:09:01 niklas Exp $ */
-/* $EOM: udp.c,v 1.39 1999/04/25 22:01:58 niklas Exp $ */
+/* $OpenBSD: udp.c,v 1.13 1999/04/30 11:46:59 niklas Exp $ */
+/* $EOM: udp.c,v 1.40 1999/04/29 18:46:54 niklas Exp $ */
/*
* Copyright (c) 1998, 1999 Niklas Hallqvist. All rights reserved.
@@ -378,9 +378,11 @@ void
udp_report (struct transport *t)
{
struct udp_transport *u = (struct udp_transport *)t;
-
- log_debug (LOG_REPORT, 0, "udp_report: fd %d src %s dst %s", u->s,
- inet_ntoa (u->src.sin_addr), inet_ntoa (u->dst.sin_addr));
+ char src[16], dst[16];
+
+ snprintf (src, 16, "%s", inet_ntoa (u->src.sin_addr));
+ snprintf (dst, 16, "%s", inet_ntoa (u->dst.sin_addr));
+ log_debug (LOG_REPORT, 0, "udp_report: fd %d src %s dst %s", u->s, src, dst);
}
/*