Skip to content

Commit cb4a1a4

Browse files
zcc0077JoeTurki
authored andcommitted
Fix invalid log in createCipher
Expected/actual were flipped leading to incorrect error message
1 parent b373975 commit cb4a1a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

context.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ func (c *Context) createCipher(mki, masterKey, masterSalt []byte, encryptSRTP, e
141141
}
142142

143143
if masterKeyLen := len(masterKey); masterKeyLen != keyLen {
144-
return nil, fmt.Errorf("%w expected(%d) actual(%d)", errShortSrtpMasterKey, masterKey, keyLen)
144+
return nil, fmt.Errorf("%w expected(%d) actual(%d)", errShortSrtpMasterKey, keyLen, masterKey)
145145
} else if masterSaltLen := len(masterSalt); masterSaltLen != saltLen {
146146
return nil, fmt.Errorf("%w expected(%d) actual(%d)", errShortSrtpMasterSalt, saltLen, masterSaltLen)
147147
}

0 commit comments

Comments
 (0)