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

http: fix segfault in response.c #35

Merged
merged 1 commit into from
Oct 22, 2020

Conversation

cspiel1
Copy link
Collaborator

@cspiel1 cspiel1 commented Oct 22, 2020

Keep an internal reference. The user may deref his reference immediately after
calling http_reqconn_send().

Previous solution suggests that the application derefs the instance in its response handler. But this lead to a segfault in line:

245  conn->tc = mem_deref(conn->tc);

Now deref immediately after http_reqconn_send() or later in the response handler is possible.

Keep an internal reference. The user may deref his reference immediately after
calling http_reqconn_send().
@sreimers sreimers merged commit b4303eb into baresip:master Oct 22, 2020
@sreimers sreimers added the bug Something isn't working label Apr 9, 2021
@sreimers sreimers added this to the v2.0.0 milestone Apr 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants