Ensure variables are initialized before used.

MFC after:		3 days
This commit is contained in:
Michael Tuexen 2020-10-06 11:29:08 +00:00
parent 6176f9d6df
commit b954d81662
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=366483
2 changed files with 4 additions and 1 deletions

View File

@ -5553,7 +5553,9 @@ sctp_common_input_processing(struct mbuf **mm, int iphlen, int offset, int lengt
stcb = NULL;
goto out;
}
data_processed = 1;
if (retval == 0) {
data_processed = 1;
}
/*
* Anything important needs to have been m_copy'ed in
* process_data

View File

@ -6047,6 +6047,7 @@ sctp_load_addresses_from_init(struct sctp_tcb *stcb, struct mbuf *m,
peer_supports_prsctp = 0;
peer_supports_auth = 0;
peer_supports_asconf = 0;
peer_supports_asconf_ack = 0;
peer_supports_reconfig = 0;
peer_supports_nrsack = 0;
peer_supports_pktdrop = 0;