]> git.ipfire.org Git - thirdparty/krb5.git/commitdiff
Fix k5crypto NSS iov processing bug 360/head
authorGreg Hudson <ghudson@mit.edu>
Mon, 7 Dec 2015 17:16:41 +0000 (12:16 -0500)
committerGreg Hudson <ghudson@mit.edu>
Thu, 10 Dec 2015 00:27:31 +0000 (19:27 -0500)
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

src/lib/crypto/nss/enc_provider/enc_gen.c

index 7022a78eedde89a196a137c3efafd3903d6a1717..cfe0d65e8eda35d867ec759e273038f13c612811 100644 (file)
@@ -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,