summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Laurie <ben@openssl.org>2009-03-03 15:12:56 +0000
committerBen Laurie <ben@openssl.org>2009-03-03 15:12:56 +0000
commit2121f15dafc99cb04a0f714b2c26bde51487ac2d (patch)
treee3f700f6300774a65e94574bcbfad8c681a1e3f1
parentb2cf7c6452aae1e85ade176bf54ad89bf0263eb2 (diff)
downloadopenssl-new-2121f15dafc99cb04a0f714b2c26bde51487ac2d.tar.gz
Use the right length (reported by Quanhong Wang).
-rw-r--r--crypto/evp/evp_test.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/crypto/evp/evp_test.c b/crypto/evp/evp_test.c
index e723265ace..902efac975 100644
--- a/crypto/evp/evp_test.c
+++ b/crypto/evp/evp_test.c
@@ -220,18 +220,18 @@ static void test1(const EVP_CIPHER *c,const unsigned char *key,int kn,
test1_exit(7);
}
- if(outl+outl2 != cn)
+ if(outl+outl2 != pn)
{
fprintf(stderr,"Plaintext length mismatch got %d expected %d\n",
- outl+outl2,cn);
+ outl+outl2,pn);
test1_exit(8);
}
- if(memcmp(out,plaintext,cn))
+ if(memcmp(out,plaintext,pn))
{
fprintf(stderr,"Plaintext mismatch\n");
- hexdump(stderr,"Got",out,cn);
- hexdump(stderr,"Expected",plaintext,cn);
+ hexdump(stderr,"Got",out,pn);
+ hexdump(stderr,"Expected",plaintext,pn);
test1_exit(9);
}
}