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.

ticket: 8300 (new)
target_version: 1.14-next
tags: pullup
  • Loading branch information
greghudson committed Dec 10, 2015
1 parent 412c19f commit 08fafff
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 08fafff

Please sign in to comment.