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

fix(http): prevent addCNameIfAvailable from using closed Dialer #5665

Conversation

dwisiswant0
Copy link
Member

Proposed changes

added a check in addCNameIfAvailable to ensure
the Dialer isnot NIL before attempting to fetch
DNS data.

this prevents potential panics (ex. SIGSEGV) when
the Dialer is closed due to an interruption.

Close #5664

Checklist

  • Pull request is created against the dev branch
  • All checks passed (lint, unit/integration/regression tests etc.) with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)

added a check in `addCNameIfAvailable` to ensure
the `Dialer` isnot NIL before attempting to fetch
DNS data.

this prevents potential panics (ex. SIGSEGV) when
the `Dialer` is closed due to an interruption.

Signed-off-by: Dwi Siswanto <[email protected]>
@ehsandeep ehsandeep merged commit c9f6789 into dev Sep 25, 2024
10 of 12 checks passed
@ehsandeep ehsandeep deleted the dwisiswant0/fix/NIL-pointer-deref-in-http-Request-addCNameIfAvailable branch September 25, 2024 16:30
@ehsandeep ehsandeep removed the request for review from dogancanbakir September 25, 2024 16:30
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.

SIGSEGV in Dialer.GetDNSDataFromCache
2 participants