Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refcounting logic #88

Closed
deleisha opened this issue Feb 19, 2018 · 1 comment
Closed

Refcounting logic #88

deleisha opened this issue Feb 19, 2018 · 1 comment

Comments

@deleisha
Copy link

tls_config_new
https://github.com/libressl-portable/openbsd/blob/5d28d37770e8d4c018069fae6cb8680c4b322ba6/src/lib/libtls/tls_config.c#L91

and also, tls_init, which calls tls_config_new increments it again. This will results refcount = 2,
https://github.com/libressl-portable/openbsd/blob/5d28d37770e8d4c018069fae6cb8680c4b322ba6/src/lib/libtls/tls.c#L55

Is this a bug or something that I misses to understand?

@deleisha
Copy link
Author

My bad, mixes things up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant