Skip to content

Commit

Permalink
[Fix] Fix npe
Browse files Browse the repository at this point in the history
  • Loading branch information
hengyoush committed Sep 15, 2024
1 parent 59eaa26 commit 9446ab1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions agent/conn/processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,8 @@ func (p *Processor) run() {
conn.ToString(), event.Seq, event.Len,
common.DisplayTcpFlags(event.Flags))
} else {
common.BPFEventLog.Debugf("[data no conn][func=%s][ts=%d][%s]%s | %d:%d flags:%s\n", common.Int8ToStr(event.FuncName[:]), event.Ts, bpf.StepCNNames[event.Step],
conn.ToString(), event.Seq, event.Len,
common.BPFEventLog.Debugf("[data no conn][func=%s][ts=%d][%s] | %d:%d flags:%s\n", common.Int8ToStr(event.FuncName[:]), event.Ts, bpf.StepCNNames[event.Step],
event.Seq, event.Len,
common.DisplayTcpFlags(event.Flags))
}
if event.Len > 0 && conn != nil && conn.Protocol != bpf.AgentTrafficProtocolTKProtocolUnknown {
Expand Down

0 comments on commit 9446ab1

Please sign in to comment.