Closed djwatson closed 8 years ago
This does not look correct to me. The callback is not restored and what about already decrypted part?
Correct, this returns an error for the second bind request, and continues to use the first bound fd, so the callback doesn't need to be restored, and the currently decrypted part is still used.
The man page and other kernel sockets look like they just disallow binding twice, and don't try to rebind.
Correct, this returns an error for the second bind request, and continues to use the first bound fd
I believe sockfd_put()
shouldn't be called and tsk->socket shouldn't be set to NULL in that case.
fix https://github.com/ktls/af_ktls/issues/44
just return einval per man 2 bind