diff options
author | tuexen <tuexen@FreeBSD.org> | 2016-04-18 20:16:41 +0000 |
---|---|---|
committer | tuexen <tuexen@FreeBSD.org> | 2016-04-18 20:16:41 +0000 |
commit | f78898772ae074bd56c82e718089c92d7c835dc9 (patch) | |
tree | 4911d614972c83d1829069c1794e0eff8c2a5358 /sys/netinet6 | |
parent | 646427c19fa818a4d7c4f823760a9397fd5a6b28 (diff) | |
download | FreeBSD-src-f78898772ae074bd56c82e718089c92d7c835dc9.zip FreeBSD-src-f78898772ae074bd56c82e718089c92d7c835dc9.tar.gz |
Address issues found by the XCode code analyzer.
Diffstat (limited to 'sys/netinet6')
-rw-r--r-- | sys/netinet6/sctp6_usrreq.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/netinet6/sctp6_usrreq.c b/sys/netinet6/sctp6_usrreq.c index 037f421..3439f7e 100644 --- a/sys/netinet6/sctp6_usrreq.c +++ b/sys/netinet6/sctp6_usrreq.c @@ -244,7 +244,6 @@ sctp6_notify(struct sctp_inpcb *inp, } else { timer_stopped = 0; } - break; /* Update the path MTU. */ if (net->mtu > next_mtu) { net->mtu = next_mtu; @@ -310,7 +309,7 @@ sctp6_ctlinput(int cmd, struct sockaddr *pktdst, void *d) * verification tag of the SCTP common header. */ if (ip6cp->ip6c_m->m_pkthdr.len < - ip6cp->ip6c_off + offsetof(struct sctphdr, checksum)) { + (int32_t) (ip6cp->ip6c_off + offsetof(struct sctphdr, checksum))) { return; } /* Copy out the port numbers and the verification tag. */ |