Skip to content

Fixed crash when exiting thread on sendto() failure#370

Merged
wdoekes merged 1 commit into
SIPp:masterfrom
treyadg:master
Feb 26, 2019
Merged

Fixed crash when exiting thread on sendto() failure#370
wdoekes merged 1 commit into
SIPp:masterfrom
treyadg:master

Conversation

@treyadg
Copy link
Copy Markdown
Contributor

@treyadg treyadg commented Nov 10, 2018

pthread_cleanup_pop() should be called after calling pthread_cleanup_push(), in case of sendto() failure, the function will return without calling pthread_cleanup_pop() which will cause sipp to crash with segfault.

@treyadg treyadg closed this Nov 10, 2018
@treyadg treyadg reopened this Nov 10, 2018
@wdoekes wdoekes merged commit 55b18ee into SIPp:master Feb 26, 2019
@wdoekes
Copy link
Copy Markdown
Member

wdoekes commented Feb 26, 2019

Thanks! I'll add a return (ret >= 0 ? 0 : -1) for good measure.

wdoekes added a commit that referenced this pull request Feb 26, 2019
Fixed crash when exiting thread on sendto() failure
wdoekes pushed a commit that referenced this pull request Feb 26, 2019
(cherry-picked 6b11afc)
(cherry-picked a36c62b)

Closes #74
Closes #370
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

Successfully merging this pull request may close these issues.

2 participants