haylinmoore / bgp.exposed

1 stars 0 forks source link

nil pointer dereference #15

Open forkwhilefork opened 1 year ago

forkwhilefork commented 1 year ago

got this running the large-communities branch. (I don't think it's related to those changes, but the line numbers will be different in main.)

L123 is p.Neighbor.OutQueue <- announcement.


[signal SIGSEGV: segmentation violation code=0x1 addr=0x1a8 pc=0x719be2]

goroutine 4894 [running]:
github.com/hamptonmoore/bgp.exposed/backend/bgp.(*Peer).Handler(0xc00022b5e0)
        /root/bgp.exposed/backend/bgp/bgp.go:123 +0x5e2
created by main.ClientHandler
        /root/bgp.exposed/backend/core/core.go:88 +0x4ea
exit status 2```