Skip to content

Commit c5f11cf

Browse files
Copilotignoramous
andauthored
ipn/auto: nil ptr in maybeKeepAlive2 (#211)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: ignoramous <852289+ignoramous@users.noreply.github.com>
1 parent 52b27e5 commit c5f11cf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

intra/ipn/auto.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,7 @@ func maybeKeepAlive(c net.Conn) (keepingalive bool) {
527527
}
528528

529529
func maybeKeepAlive2(c net.Conn) (keepingalive, ok bool) {
530-
if c == nil {
530+
if c == nil || core.IsNil(c) {
531531
return
532532
}
533533

0 commit comments

Comments
 (0)