Skip to content

Commit

Permalink
disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
laffer1 committed Apr 12, 2024
1 parent 3cf0565 commit 6f37498
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions sys/contrib/ngatm/netnatm/msg/privmsg.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ int
uni_decode_head(struct uni_msg *msg, struct uni_all *out,
struct unicx *cx __unused)
{
u_int mlen;

cx->errcnt = 0;
(void)memset(out, 0, sizeof(struct uni_all));

Expand Down Expand Up @@ -92,19 +90,6 @@ uni_decode_head(struct uni_msg *msg, struct uni_all *out,

msg->b_rptr++;

mlen = *msg->b_rptr++ << 8;
mlen |= *msg->b_rptr++;

/*
* If the message is longer than the indicated length
* 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

return 0;
}

Expand Down

0 comments on commit 6f37498

Please sign in to comment.