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:
Robert Lubos 2019-02-25 14:04:31 +01:00 committed by Anas Nashif
parent 6175d1bd8e
commit 10e43e12ed

View file

@ -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;