sctp: cleanup, no functional change intended
MFC after: 1 week
This commit is contained in:
parent
6c2d440416
commit
4542164685
@ -2195,7 +2195,6 @@ sctp_asconf_iterator_stcb(struct sctp_inpcb *inp, struct sctp_tcb *stcb,
|
||||
return;
|
||||
else
|
||||
continue;
|
||||
break;
|
||||
}
|
||||
|
||||
if (type == SCTP_ADD_IP_ADDRESS) {
|
||||
|
@ -1975,7 +1975,6 @@ sctp_process_cookie_new(struct mbuf *m, int iphlen, int offset,
|
||||
union sctp_sockstore store;
|
||||
struct sctp_association *asoc;
|
||||
int init_offset, initack_offset, initack_limit;
|
||||
int retval;
|
||||
int error = 0;
|
||||
uint8_t auth_chunk_buf[SCTP_CHUNK_BUFFER_SIZE];
|
||||
|
||||
@ -2088,9 +2087,9 @@ sctp_process_cookie_new(struct mbuf *m, int iphlen, int offset,
|
||||
return (NULL);
|
||||
}
|
||||
/* load all addresses */
|
||||
if ((retval = sctp_load_addresses_from_init(stcb, m,
|
||||
if (sctp_load_addresses_from_init(stcb, m,
|
||||
init_offset + sizeof(struct sctp_init_chunk),
|
||||
initack_offset, src, dst, init_src, port)) < 0) {
|
||||
initack_offset, src, dst, init_src, port) < 0) {
|
||||
(void)sctp_free_assoc(inp, stcb, SCTP_NORMAL_PROC,
|
||||
SCTP_FROM_SCTP_INPUT + SCTP_LOC_20);
|
||||
return (NULL);
|
||||
|
@ -330,7 +330,7 @@ sctp_find_alternate_net(struct sctp_tcb *stcb,
|
||||
}
|
||||
/* Look for an alternate net, which is active. */
|
||||
if ((net != NULL) && ((net->dest_state & SCTP_ADDR_BEING_DELETED) == 0)) {
|
||||
alt = TAILQ_NEXT(net, sctp_next);;
|
||||
alt = TAILQ_NEXT(net, sctp_next);
|
||||
} else {
|
||||
alt = TAILQ_FIRST(&stcb->asoc.nets);
|
||||
}
|
||||
@ -369,7 +369,7 @@ sctp_find_alternate_net(struct sctp_tcb *stcb,
|
||||
* an alternate net, which is confirmed.
|
||||
*/
|
||||
if ((net != NULL) && ((net->dest_state & SCTP_ADDR_BEING_DELETED) == 0)) {
|
||||
alt = TAILQ_NEXT(net, sctp_next);;
|
||||
alt = TAILQ_NEXT(net, sctp_next);
|
||||
} else {
|
||||
alt = TAILQ_FIRST(&stcb->asoc.nets);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user