Fix a locking issue found by running AFL on the userland stack.

Thanks to Felix Weinrank for reporting the issue.

MFC after:	3 days
This commit is contained in:
Michael Tuexen 2017-10-24 14:28:56 +00:00
parent b4ed9a87f9
commit adc59f7f46

View File

@ -4863,9 +4863,6 @@ process_control_chunks:
if ((stcb != NULL) && (stcb->asoc.total_output_queue_size)) {
;
} else {
if (stcb != NULL) {
SCTP_TCB_UNLOCK(stcb);
}
*offset = length;
if (stcb != NULL) {
#if defined(__APPLE__) || defined(SCTP_SO_LOCK_TESTING)