|
@@ -1525,7 +1525,7 @@ struct sctp_chunk *sctp_assoc_lookup_asconf_ack(
|
|
const struct sctp_association *asoc,
|
|
const struct sctp_association *asoc,
|
|
__be32 serial)
|
|
__be32 serial)
|
|
{
|
|
{
|
|
- struct sctp_chunk *ack = NULL;
|
|
|
|
|
|
+ struct sctp_chunk *ack;
|
|
|
|
|
|
/* Walk through the list of cached ASCONF-ACKs and find the
|
|
/* Walk through the list of cached ASCONF-ACKs and find the
|
|
* ack chunk whose serial number matches that of the request.
|
|
* ack chunk whose serial number matches that of the request.
|
|
@@ -1533,9 +1533,9 @@ struct sctp_chunk *sctp_assoc_lookup_asconf_ack(
|
|
list_for_each_entry(ack, &asoc->asconf_ack_list, transmitted_list) {
|
|
list_for_each_entry(ack, &asoc->asconf_ack_list, transmitted_list) {
|
|
if (ack->subh.addip_hdr->serial == serial) {
|
|
if (ack->subh.addip_hdr->serial == serial) {
|
|
sctp_chunk_hold(ack);
|
|
sctp_chunk_hold(ack);
|
|
- break;
|
|
|
|
|
|
+ return ack;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- return ack;
|
|
|
|
|
|
+ return NULL;
|
|
}
|
|
}
|