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
nil pointer dereference when connecting to SSH based URLs with invalid proxy address #900
Labels
bug
Something isn't working
Comments
@anandf thank you for reporting this. Do you mind sharing the stack trace please? |
yes, I have the code fix as well. Will be submitting a PR.
|
anandf
added a commit
to anandf/go-git
that referenced
this issue
Nov 1, 2023
…nreachable proxy server is set. Fixes go-git#900 Signed-off-by: Anand Francis Joseph <anjoseph@redhat.com>
anandf
added a commit
to anandf/go-git
that referenced
this issue
Nov 2, 2023
…nreachable proxy server is set. Fixes go-git#900 Signed-off-by: Anand Francis Joseph <anjoseph@redhat.com>
pjbgf
added a commit
that referenced
this issue
Nov 2, 2023
plumbing: transport/ssh, Fix nil pointer dereference caused when an unreachable proxy server is set. Fixes #900
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When trying to list references from a remote git repository, through a
socks5
proxy, there is anil
pointer dereference operation causing the code to panic. In the below code, I am setting proxy server url assocks5://127.0.0.1:1080
. If the proxy server is running, then the code behaves correctly, but if the proxy server is not running, the code panics at this line of codesession, err := gitClient.NewUploadPackSession(ep, auth)
Reproducer code:
The text was updated successfully, but these errors were encountered: