Skip to content

Commit

Permalink
snet: SCIONPacketConn.ReadFrom - Don't fail on nil argument (#3282)
Browse files Browse the repository at this point in the history
  • Loading branch information
sustrik authored Oct 28, 2019
1 parent f95f51c commit 622b3b2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion go/lib/snet/packet_conn.go
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,9 @@ func (c *SCIONPacketConn) readFrom(pkt *SCIONPacket, ov *overlay.OverlayAddr) er
pkt.Extensions = append(pkt.Extensions, scnPkt.E2EExt...)
pkt.L4Header = scnPkt.L4
pkt.Payload = scnPkt.Pld
*ov = *lastHop
if ov != nil {
*ov = *lastHop
}
return nil
}

Expand Down

0 comments on commit 622b3b2

Please sign in to comment.