Skip to content

Commit

Permalink
Fix k5crypto NSS iov processing bug
Browse files Browse the repository at this point in the history
In k5_nss_gen_stream_iov(), don't stop processing the iov array if we
run across a zero-length iov.

(cherry picked from commit 08fafff)

ticket: 8300
version_fixed: 1.14.1
  • Loading branch information
greghudson authored and tlyu committed Dec 17, 2015
1 parent ad14dbf commit 4682cfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/crypto/nss/enc_provider/enc_gen.c
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ k5_nss_gen_stream_iov(krb5_key krb_key, krb5_data *state,
int return_length;
iov = &data[i];
if (iov->data.length <= 0)
break;
continue;

if (ENCRYPT_IOV(iov)) {
rv = PK11_CipherOp(ctx, (unsigned char *)iov->data.data,
Expand Down

0 comments on commit 4682cfb

Please sign in to comment.