diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 1994-10-02 17:48:58 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 1994-10-02 17:48:58 +0000 |
| commit | 623ae52e4e1ce4afabbf2ba7b17d8da7b375c97b (patch) | |
| tree | c117ab448d9316a116c92751ddc54084d53fb88a /sys/netinet/udp_usrreq.c | |
| parent | 51b713ac2b44e4205d3f986864ae94088190ad61 (diff) | |
Notes
Diffstat (limited to 'sys/netinet/udp_usrreq.c')
| -rw-r--r-- | sys/netinet/udp_usrreq.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/netinet/udp_usrreq.c b/sys/netinet/udp_usrreq.c index fbd83ae0ed52..8d7048473ac7 100644 --- a/sys/netinet/udp_usrreq.c +++ b/sys/netinet/udp_usrreq.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)udp_usrreq.c 8.4 (Berkeley) 1/21/94 - * $Id$ + * $Id: udp_usrreq.c,v 1.3 1994/08/02 07:49:24 davidg Exp $ */ #include <sys/param.h> @@ -144,7 +144,8 @@ udp_input(m, iphlen) ((struct ipovly *)ip)->ih_prev = 0; ((struct ipovly *)ip)->ih_x1 = 0; ((struct ipovly *)ip)->ih_len = uh->uh_ulen; - if (uh->uh_sum = in_cksum(m, len + sizeof (struct ip))) { + uh->uh_sum = in_cksum(m, len + sizeof (struct ip)); + if (uh->uh_sum) { udpstat.udps_badsum++; m_freem(m); return; |
