From 6b976395252ebf90f74819f89985d75b1d32e764 Mon Sep 17 00:00:00 2001 From: guy Date: Wed, 25 Apr 2007 22:33:47 +0000 Subject: Use "address_to_str()" to format an address, rather than assuming it's an IPv4 address. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@21568 f5534014-38df-0310-8fa8-9805f1628bb7 --- epan/dissectors/packet-dtls.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'epan/dissectors') diff --git a/epan/dissectors/packet-dtls.c b/epan/dissectors/packet-dtls.c index c5d6d7aeeb..bda2fd2c03 100644 --- a/epan/dissectors/packet-dtls.c +++ b/epan/dissectors/packet-dtls.c @@ -335,10 +335,8 @@ dissect_dtls(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) dummy.addr = pinfo->dst; dummy.port = pinfo->destport; } - ssl_debug_printf("dissect_dtls server %hhd.%hhd.%hhd.%hhd:%d\n", - dummy.addr.data[0], - dummy.addr.data[1],dummy.addr.data[2], - dummy.addr.data[3],dummy.port); + ssl_debug_printf("dissect_dtls server %s:%d\n", + address_to_str(&dummy.addr),dummy.port); /* try to retrive private key for this service. Do it now 'cause pinfo * is not always available -- cgit v1.2.3