Regardless of whether or not the check for IPv4 is useful, we certainly

don't need to assign the "ip" pointer twice.
This commit is contained in:
David Greenman 1996-04-25 02:34:37 +00:00
parent 02836a445d
commit 2a8d579fc8
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=15377

View file

@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)if_sl.c 8.6 (Berkeley) 2/1/94
* $Id: if_sl.c,v 1.37 1996/04/07 17:39:09 bde Exp $
* $Id: if_sl.c,v 1.38 1996/04/24 15:44:34 phk Exp $
*/
/*
@ -561,8 +561,8 @@ slstart(tp)
} while (m1 = m1->m_next);
}
#endif
if ((ip = mtod(m, struct ip *))->ip_v == IPVERSION) &&
(ip = mtod(m, struct ip *))->ip_p == IPPROTO_TCP) {
ip = mtod(m, struct ip *);
if (ip->ip_v == IPVERSION && ip->ip_p == IPPROTO_TCP) {
if (sc->sc_if.if_flags & SC_COMPRESS)
*mtod(m, u_char *) |= sl_compress_tcp(m, ip,
&sc->sc_comp, 1);