| Index: mozilla/security/nss/lib/freebl/desblapi.c
|
| ===================================================================
|
| --- mozilla/security/nss/lib/freebl/desblapi.c (revision 180567)
|
| +++ mozilla/security/nss/lib/freebl/desblapi.c (working copy)
|
| @@ -243,7 +243,7 @@
|
| unsigned int maxOutLen, const BYTE *in, unsigned int inLen)
|
| {
|
|
|
| - if (inLen < 0 || (inLen % 8) != 0 || maxOutLen < inLen || !cx ||
|
| + if ((inLen % 8) != 0 || maxOutLen < inLen || !cx ||
|
| cx->direction != DES_ENCRYPT) {
|
| PORT_SetError(SEC_ERROR_INVALID_ARGS);
|
| return SECFailure;
|
| @@ -260,7 +260,7 @@
|
| unsigned int maxOutLen, const BYTE *in, unsigned int inLen)
|
| {
|
|
|
| - if (inLen < 0 || (inLen % 8) != 0 || maxOutLen < inLen || !cx ||
|
| + if ((inLen % 8) != 0 || maxOutLen < inLen || !cx ||
|
| cx->direction != DES_DECRYPT) {
|
| PORT_SetError(SEC_ERROR_INVALID_ARGS);
|
| return SECFailure;
|
|
|