Skip to content

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]>
@auto-assign auto-assign bot requested a review from dogancanbakir September 25, 2024 01:32
@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

3 participants