summaryrefslogtreecommitdiff
path: root/src/or/test.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2008-12-05 01:35:49 +0000
committerNick Mathewson <nickm@torproject.org>2008-12-05 01:35:49 +0000
commite06442b64820db59394dce140967a60dd813533a (patch)
tree4ea69904d1f65eb151e29fde7eae5b31ce3b2574 /src/or/test.c
parent2be52151816dbec0d9548362775c9bc5de46372e (diff)
downloadtor-e06442b64820db59394dce140967a60dd813533a.tar.gz
tor-e06442b64820db59394dce140967a60dd813533a.zip
Add a couple of sanity-checks for return values that coverity thinks we ought to have. CIDs 337, 335.
svn:r17485
Diffstat (limited to 'src/or/test.c')
-rw-r--r--src/or/test.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/test.c b/src/or/test.c
index c73cf00823..9b05242c40 100644
--- a/src/or/test.c
+++ b/src/or/test.c
@@ -763,6 +763,7 @@ test_crypto(void)
memset(data1, 6, 1024);
for (idx = 0; idx < 10; ++idx) {
i = base64_encode(data2, 1024, data1, idx);
+ test_assert(i >= 0);
j = base64_decode(data3, 1024, data2, i);
test_eq(j,idx);
test_memeq(data3, data1, idx);