Address a compile warning.

MFC after:	1 week
This commit is contained in:
Michael Tuexen 2015-09-12 18:00:06 +00:00
parent 119c9aca64
commit 6802b0904f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=287719

View File

@ -530,9 +530,9 @@ sctp_process_init_ack(struct mbuf *m, int iphlen, int offset,
* abandon the peer, its broke.
*/
if (retval == -3) {
size_t len;
uint16_t len;
len = sizeof(struct sctp_error_missing_param) + sizeof(uint16_t);
len = (uint16_t) (sizeof(struct sctp_error_missing_param) + sizeof(uint16_t));
/* We abort with an error of missing mandatory param */
op_err = sctp_get_mbuf_for_msg(len, 0, M_NOWAIT, 1, MT_DATA);
if (op_err != NULL) {