Skip to content

Commit

Permalink
Remove padding check from CompoundPacket
Browse files Browse the repository at this point in the history
Due to #20 this check is a no-op. Removing it here so no one is
misled into thinking that we implement this feature.

Relates to #25
  • Loading branch information
maxhawkins committed Apr 7, 2019
1 parent bdb1294 commit 4d8fcc5
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions compound_packet.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@ func (c CompoundPacket) validateFirstPacket() error {

firstHdr := c[0].Header()

// padding isn't allowed in the first packet in a compound datagram
if firstHdr.Padding {
return errInvalidPadding
}
// SenderReport and ReceiverReport are the only types that
// are allowed to be the first packet in a compound datagram
if (firstHdr.Type != TypeSenderReport) && (firstHdr.Type != TypeReceiverReport) {
Expand Down

0 comments on commit 4d8fcc5

Please sign in to comment.