summaryrefslogtreecommitdiffstats
path: root/sys/netinet/udp_usrreq.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1994-10-02 17:48:58 +0000
committerphk <phk@FreeBSD.org>1994-10-02 17:48:58 +0000
commitf3c1ed23270f2db1e6c2456439dd12b7b68e8bde (patch)
treec117ab448d9316a116c92751ddc54084d53fb88a /sys/netinet/udp_usrreq.c
parent451659421c6fd9cc8d83d27e51ae1ba317522182 (diff)
downloadFreeBSD-src-f3c1ed23270f2db1e6c2456439dd12b7b68e8bde.zip
FreeBSD-src-f3c1ed23270f2db1e6c2456439dd12b7b68e8bde.tar.gz
GCC cleanup.
Reviewed by: Submitted by: Obtained from:
Diffstat (limited to 'sys/netinet/udp_usrreq.c')
-rw-r--r--sys/netinet/udp_usrreq.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/netinet/udp_usrreq.c b/sys/netinet/udp_usrreq.c
index fbd83ae..8d70484 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;
OpenPOWER on IntegriCloud