aboutsummaryrefslogtreecommitdiff
path: root/sys/contrib
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2022-04-08 00:01:26 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2022-04-08 00:01:26 +0000
commit3f0871d7fc4e478d85645d1202506143718a6157 (patch)
tree113bf3f8ccd2b1ed97377250bda0040b630d5524 /sys/contrib
parentb08a56ad4608586ce457838655db7e59a126e08d (diff)
downloadsrc-3f0871d7fc4e478d85645d1202506143718a6157.tar.gz
src-3f0871d7fc4e478d85645d1202506143718a6157.zip
ngatm: Expand #if 0 to cover all lines involving mlen.
Diffstat (limited to 'sys/contrib')
-rw-r--r--sys/contrib/ngatm/netnatm/msg/privmsg.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/contrib/ngatm/netnatm/msg/privmsg.c b/sys/contrib/ngatm/netnatm/msg/privmsg.c
index 76a7f69aa3c6..73e3944c06e6 100644
--- a/sys/contrib/ngatm/netnatm/msg/privmsg.c
+++ b/sys/contrib/ngatm/netnatm/msg/privmsg.c
@@ -44,7 +44,9 @@ int
uni_decode_head(struct uni_msg *msg, struct uni_all *out,
struct unicx *cx __unused)
{
+#if 0
u_int mlen;
+#endif
cx->errcnt = 0;
(void)memset(out, 0, sizeof(struct uni_all));
@@ -92,6 +94,7 @@ uni_decode_head(struct uni_msg *msg, struct uni_all *out,
msg->b_rptr++;
+#if 0
mlen = *msg->b_rptr++ << 8;
mlen |= *msg->b_rptr++;
@@ -100,7 +103,6 @@ uni_decode_head(struct uni_msg *msg, struct uni_all *out,
* shorten it. If it is shorter, probably one of the IE
* decoders will break, but we should proceed. 5.5.6.5
*/
-#if 0
if(uni_msg_len(msg) > mlen)
msg->b_wptr = msg->b_rptr + mlen;
#endif