net: sockets: tls: Add missing poll descriptor increment
Poll descriptor was not incremented in poll update function in case it was reported as not ready. In result, poll could end up processing the same poll descriptor for every fd requested to monitor. Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
This commit is contained in:
parent
6175d1bd8e
commit
10e43e12ed
|
@ -1785,6 +1785,8 @@ static int ztls_poll_update_ctx(struct net_context *ctx,
|
|||
(*pev)->state = K_POLL_STATE_NOT_READY;
|
||||
goto again;
|
||||
}
|
||||
|
||||
goto next;
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Reference in a new issue