]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Do not discard sign on return values of iv crypto functions in tests. May fix CID...
authorNick Mathewson <nickm@torproject.org>
Thu, 11 Dec 2008 21:11:31 +0000 (21:11 +0000)
committerNick Mathewson <nickm@torproject.org>
Thu, 11 Dec 2008 21:11:31 +0000 (21:11 +0000)
svn:r17603

src/or/test.c

index 9007bc3a59e0e0ade084354f598c3fe4548f4bcc..87d866a43f94a34b0493a259953ae38520bea887 100644 (file)
@@ -4086,7 +4086,7 @@ test_crypto_aes_iv(void)
   char *plain, *encrypted1, *encrypted2, *decrypted1, *decrypted2;
   char plain_1[1], plain_15[15], plain_16[16], plain_17[17];
   char key1[16], key2[16];
-  size_t encrypted_size, decrypted_size;
+  ssize_t encrypted_size, decrypted_size;
 
   plain = tor_malloc(4095);
   encrypted1 = tor_malloc(4095 + 1 + 16);