diff options
author | tuexen <tuexen@FreeBSD.org> | 2011-11-27 17:51:13 +0000 |
---|---|---|
committer | tuexen <tuexen@FreeBSD.org> | 2011-11-27 17:51:13 +0000 |
commit | a629e6ac5ae0f17c2fe1f0de467490004c6d4798 (patch) | |
tree | 3a38399aa8c55548c62d114c34eb9d574b957920 /sys/netinet/sctp_header.h | |
parent | a95ae73e491d638c5ce6606f81e8a9ec30059dc5 (diff) | |
download | FreeBSD-src-a629e6ac5ae0f17c2fe1f0de467490004c6d4798.zip FreeBSD-src-a629e6ac5ae0f17c2fe1f0de467490004c6d4798.tar.gz |
Fix a warning reported by arundel@.
Fix a bug where the parameter length of a supported address types
parameter is set to a wrong value if the kernel is built with
with either INET or INET6, but not both.
MFC after: 3 days.
Diffstat (limited to 'sys/netinet/sctp_header.h')
-rw-r--r-- | sys/netinet/sctp_header.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/netinet/sctp_header.h b/sys/netinet/sctp_header.h index 1aff6a1..ce75901 100644 --- a/sys/netinet/sctp_header.h +++ b/sys/netinet/sctp_header.h @@ -81,8 +81,7 @@ struct sctp_host_name_param { /* supported address type */ struct sctp_supported_addr_param { struct sctp_paramhdr ph;/* type=SCTP_SUPPORTED_ADDRTYPE */ - uint16_t addr_type[SCTP_ARRAY_MIN_LEN]; /* array of supported address - * types */ + uint16_t addr_type[2]; /* array of supported address types */ } SCTP_PACKED; /* ECN parameter */ |