mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 00:32:25 -04:00
Remove an unused variable.
Reported by: Coverity CID: 750999 MFC after: 1 week
This commit is contained in:
parent
9cecb88ce3
commit
61330de4b0
1 changed files with 1 additions and 3 deletions
|
|
@ -4720,7 +4720,6 @@ sctp_setopt(struct socket *so, int optname, void *optval, size_t optsize,
|
|||
case SCTP_CONNECT_X_COMPLETE:
|
||||
{
|
||||
struct sockaddr *sa;
|
||||
struct sctp_nets *net;
|
||||
|
||||
/* FIXME MT: check correct? */
|
||||
SCTP_CHECK_AND_CAST(sa, optval, struct sockaddr, optsize);
|
||||
|
|
@ -4731,7 +4730,6 @@ sctp_setopt(struct socket *so, int optname, void *optval, size_t optsize,
|
|||
stcb = LIST_FIRST(&inp->sctp_asoc_list);
|
||||
if (stcb) {
|
||||
SCTP_TCB_LOCK(stcb);
|
||||
net = sctp_findnet(stcb, sa);
|
||||
}
|
||||
SCTP_INP_RUNLOCK(inp);
|
||||
} else {
|
||||
|
|
@ -4743,7 +4741,7 @@ sctp_setopt(struct socket *so, int optname, void *optval, size_t optsize,
|
|||
* TCB.. aka NULL.
|
||||
*/
|
||||
SCTP_INP_INCR_REF(inp);
|
||||
stcb = sctp_findassociation_ep_addr(&inp, sa, &net, NULL, NULL);
|
||||
stcb = sctp_findassociation_ep_addr(&inp, sa, NULL, NULL, NULL);
|
||||
if (stcb == NULL) {
|
||||
SCTP_INP_DECR_REF(inp);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue