diff options
-rw-r--r-- | sys/netinet/sctp_input.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/sctp_input.c b/sys/netinet/sctp_input.c index e3d49bd..ad2f136 100644 --- a/sys/netinet/sctp_input.c +++ b/sys/netinet/sctp_input.c @@ -3122,11 +3122,11 @@ strres_nochunk: /* bad param */ break; } - ph = (struct sctp_paramhdr *)sctp_m_getptr(m, offset, min(param_len, sizeof(cstore)), + ph = (struct sctp_paramhdr *)sctp_m_getptr(m, offset, min(param_len, (int)sizeof(cstore)), (uint8_t *) & cstore); ptype = ntohs(ph->param_type); num_param++; - if (param_len > sizeof(cstore)) { + if (param_len > (int)sizeof(cstore)) { trunc = 1; } else { trunc = 0; |