From Florent Drouin: don't call ip6addr_string() if IPv4 isn't enabled.

This commit is contained in:
guy 2007-02-01 02:28:38 +00:00
parent 8a905570c7
commit 2f7795dba5
2 changed files with 4 additions and 1 deletions

View File

@ -44,6 +44,7 @@ Additional people who have contributed patches:
David Young <dyoung@ojctech.com>
Don Ebright <Don.Ebright@compuware.com>
Eddie Kohler <xexd@sourceforge.net>
Florent Drouin <Florent.Drouin@alcatel-lucent.fr>
Francis Dupont <Francis.Dupont@enst-bretagne.fr>
Francisco Matias Cuenca-Acuna <mcuenca@george.rutgers.edu>
Frank Volf <volf@oasis.IAEhv.nl>

View File

@ -19,7 +19,7 @@
#ifndef lint
static const char rcsid[] _U_ =
"@(#) $Header: /tcpdump/master/tcpdump/print-cfm.c,v 1.3 2006-10-29 23:10:07 hannes Exp $";
"@(#) $Header: /tcpdump/master/tcpdump/print-cfm.c,v 1.4 2007-02-01 02:28:38 guy Exp $";
#endif
#ifdef HAVE_CONFIG_H
@ -260,9 +260,11 @@ cfm_mgmt_addr_print(register const u_char *tptr) {
printf(", %s", ipaddr_string(tptr + 1));
break;
#ifdef INET6
case AFNUM_INET6:
printf(", %s", ip6addr_string(tptr + 1));
break;
#endif
default:
hexdump = TRUE;