mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-28 18:28:23 -05:00
WPS: Merge event_send_start() error paths
There is no need to keep these separate. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
476daa0585
commit
b8e20236c1
@ -276,11 +276,9 @@ static int event_send_start(struct subscription *s)
|
||||
* Assume we are called ONLY with no current event and ONLY with
|
||||
* nonempty event queue and ONLY with at least one address to send to.
|
||||
*/
|
||||
if (dl_list_empty(&s->addr_list))
|
||||
return -1;
|
||||
if (s->current_event)
|
||||
return -1;
|
||||
if (dl_list_empty(&s->event_queue))
|
||||
if (dl_list_empty(&s->addr_list) ||
|
||||
s->current_event ||
|
||||
dl_list_empty(&s->event_queue))
|
||||
return -1;
|
||||
|
||||
s->current_event = e = event_dequeue(s);
|
||||
|
Loading…
Reference in New Issue
Block a user