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 nil deref on latest agent #100

Merged
merged 2 commits into from
Aug 8, 2024
Merged

Conversation

jvinnedge
Copy link
Contributor

Got the following when attempting to run the latest agent release:

$ ./agent -ignore-cert -retry -connect 127.0.0.1:11601
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x6d77a3]

goroutine 1 [running]:
main.main()
	/home/runner/work/ligolo-ng/ligolo-ng/cmd/agent/main.go:102 +0x363
$

Looks like this was caused by the recent websocket merge. The nil deref occurs when a websocket connection is not specified, and a direct TCP connection is attempted.

@nicocha30
Copy link
Owner

lgtm

@nicocha30 nicocha30 merged commit 46c6413 into nicocha30:master Aug 8, 2024
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