diff options
Diffstat (limited to 'ssl/test/runner/dtls.go')
-rw-r--r-- | ssl/test/runner/dtls.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ssl/test/runner/dtls.go b/ssl/test/runner/dtls.go index b873ae6d..788bec86 100644 --- a/ssl/test/runner/dtls.go +++ b/ssl/test/runner/dtls.go @@ -335,7 +335,7 @@ func (c *Conn) dtlsSealRecord(typ recordType, data []byte) (b *block, err error) // use the sequence number as the nonce. explicitIVIsSeq = true } - } else if c.out.cipher != nil { + } else if _, ok := c.out.cipher.(nullCipher); !ok && c.out.cipher != nil { panic("Unknown cipher") } b.resize(recordHeaderLen + explicitIVLen + len(data)) |