From 4e25d1d20bb96da685ed43e7e2271e9055b0c36a Mon Sep 17 00:00:00 2001 From: mrg Date: Mon, 20 May 1996 16:56:20 +0000 Subject: [PATCH] if the sender set a cksum, check it, regardless if we care to generate and send them ourselves. from rich stevens. --- sys/netinet/udp_usrreq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/netinet/udp_usrreq.c b/sys/netinet/udp_usrreq.c index c5aeb05197db..42ed8f1ffe2e 100644 --- a/sys/netinet/udp_usrreq.c +++ b/sys/netinet/udp_usrreq.c @@ -1,4 +1,4 @@ -/* $NetBSD: udp_usrreq.c,v 1.28 1996/03/16 23:54:03 christos Exp $ */ +/* $NetBSD: udp_usrreq.c,v 1.29 1996/05/20 16:56:20 mrg Exp $ */ /* * Copyright (c) 1982, 1986, 1988, 1990, 1993 @@ -162,7 +162,7 @@ udp_input(m, va_alist) /* * Checksum extended UDP header and data. */ - if (udpcksum && uh->uh_sum) { + if (uh->uh_sum) { bzero(((struct ipovly *)ip)->ih_x1, sizeof ((struct ipovly *)ip)->ih_x1); ((struct ipovly *)ip)->ih_len = uh->uh_ulen;