aboutsummaryrefslogtreecommitdiff
path: root/usrsctplib/netinet6
diff options
context:
space:
mode:
authorMichael Tuexen <tuexen@fh-muenster.de>2016-04-18 22:22:59 +0200
committerMichael Tuexen <tuexen@fh-muenster.de>2016-04-18 22:22:59 +0200
commita9d8c471b6d1a65c27ec79236a7ee9e817c196e5 (patch)
treeadc05762334906fc296fac30f13b93883dfed17c /usrsctplib/netinet6
parent190a57ca0a2b3305aa27025d7916b20f62814c1c (diff)
downloadusrsctp-a9d8c471b6d1a65c27ec79236a7ee9e817c196e5.tar.gz
Address issues found by the clang code analyzer.
Diffstat (limited to 'usrsctplib/netinet6')
-rw-r--r--usrsctplib/netinet6/sctp6_usrreq.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usrsctplib/netinet6/sctp6_usrreq.c b/usrsctplib/netinet6/sctp6_usrreq.c
index 641289e7..045aee77 100644
--- a/usrsctplib/netinet6/sctp6_usrreq.c
+++ b/usrsctplib/netinet6/sctp6_usrreq.c
@@ -32,7 +32,7 @@
#ifdef __FreeBSD__
#include <sys/cdefs.h>
-__FBSDID("$FreeBSD: head/sys/netinet6/sctp6_usrreq.c 298132 2016-04-16 21:34:49Z tuexen $");
+__FBSDID("$FreeBSD: head/sys/netinet6/sctp6_usrreq.c 298223 2016-04-18 20:16:41Z tuexen $");
#endif
#include <netinet/sctp_os.h>
@@ -408,7 +408,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;
@@ -479,7 +478,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;
}