Skip to content

Commit

Permalink
clean up.
Browse files Browse the repository at this point in the history
  • Loading branch information
sakane committed Oct 25, 2000
1 parent 1e98279 commit 386125d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions kame/sys/netinet6/ah_input.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* $KAME: ah_input.c,v 1.39 2000/10/23 04:24:22 itojun Exp $ */
/* $KAME: ah_input.c,v 1.40 2000/10/25 06:31:45 sakane Exp $ */

/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
Expand Down Expand Up @@ -420,7 +420,7 @@ ah4_input(m, va_alist)
}

/* was it transmitted over the IPsec tunnel SA? */
if (ipsec4_tunnel_validate(ip, nxt, sav) && nxt == IPPROTO_IPV4) {
if (ipsec4_tunnel_validate(ip, nxt, sav)) {
/*
* strip off all the headers that precedes AH.
* IP xx AH IP' payload -> IP' payload
Expand Down Expand Up @@ -891,7 +891,7 @@ ah6_input(mp, offp, proto)
}

/* was it transmitted over the IPsec tunnel SA? */
if (ipsec6_tunnel_validate(ip6, nxt, sav) && nxt == IPPROTO_IPV6) {
if (ipsec6_tunnel_validate(ip6, nxt, sav)) {
/*
* strip off all the headers that precedes AH.
* IP6 xx AH IP6' payload -> IP6' payload
Expand Down

0 comments on commit 386125d

Please sign in to comment.