Skip to content

Commit

Permalink
- Invoke natpt_revertICMPv6To4address() when m4 has non-NULL value.
Browse files Browse the repository at this point in the history
  • Loading branch information
fujisawa committed Aug 13, 2002
1 parent a70ee7b commit c3abda0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions kame/sys/netinet6/natpt_trans.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* $KAME: natpt_trans.c,v 1.143 2002/08/13 08:09:02 fujisawa Exp $ */
/* $KAME: natpt_trans.c,v 1.144 2002/08/13 08:36:10 fujisawa Exp $ */

/*
* Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000 and 2001 WIDE Project.
Expand Down Expand Up @@ -251,8 +251,8 @@ natpt_translateIPv6To4(struct pcv *cv6, struct pAddr *pad)

switch (cv6->ip_p) {
case IPPROTO_ICMPV6:
m4 = natpt_translateICMPv6To4(cv6, pad);
natpt_revertICMPv6To4address(cv6, m4);
if ((m4 = natpt_translateICMPv6To4(cv6, pad)) != NULL)
natpt_revertICMPv6To4address(cv6, m4);
break;

case IPPROTO_TCP:
Expand Down

0 comments on commit c3abda0

Please sign in to comment.