Fix a bug introduced in r324638.

Thanks to Felix Weinrank for making me aware of this.

MFC after:	3 days
This commit is contained in:
Michael Tuexen 2017-10-18 18:56:56 +00:00
parent d8371cb18e
commit 3ed8d364a7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=324725
2 changed files with 3 additions and 0 deletions

View File

@ -728,6 +728,8 @@ struct _ipfw_dyn_rule {
#define ICMP_REJECT_RST 0x100 /* fake ICMP code (send a TCP RST) */
#define ICMP6_UNREACH_RST 0x100 /* fake ICMPv6 code (send a TCP RST) */
#define ICMP_REJECT_ABORT 0x101 /* fake ICMP code (send an SCTP ABORT */
#define ICMP6_UNREACH_ABORT 0x101 /* fake ICMPv6 code (send an SCTP ABORT) */
/*
* These are used for lookup tables.

View File

@ -4536,6 +4536,7 @@ sctp_process_control(struct mbuf *m, int iphlen, int *offset, int length,
if (ntohs(ch->chunk_length) < sizeof(*ch)) {
SCTPDBG(SCTP_DEBUG_INPUT1, "Invalid header length %d\n",
ntohs(ch->chunk_length));
*offset = length;
return (stcb);
}
/*