Skip to content

Commit

Permalink
lp: copy pit token
Browse files Browse the repository at this point in the history
  • Loading branch information
pulsejet committed Dec 10, 2024
1 parent 7cac9d7 commit 9a6be34
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion face/ndnlp-link-service.go
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,8 @@ func (l *NDNLPLinkService) handleIncomingFrame(frame []byte) {

// PIT Token
if len(LP.PitToken) > 0 {
pkt.PitToken = LP.PitToken
pkt.PitToken = make([]byte, len(LP.PitToken))
copy(pkt.PitToken, LP.PitToken)
}

// Copy fragment to wire buffer
Expand Down

0 comments on commit 9a6be34

Please sign in to comment.