diff options
author | Nick Mathewson <nickm@torproject.org> | 2012-07-31 14:35:19 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2012-07-31 17:08:13 -0400 |
commit | 3763959ef0d0510628ec4f54cb3df09f963bc4bd (patch) | |
tree | 344dfbffb831564caa7909fd7bbfb65085225e68 /src/test/test_introduce.c | |
parent | 3c304173393cc3133d728dc4ab4848b98024ec9e (diff) | |
download | tor-3763959ef0d0510628ec4f54cb3df09f963bc4bd.tar.gz tor-3763959ef0d0510628ec4f54cb3df09f963bc4bd.zip |
test_assert is always in affect: no need for extra gotos
Diffstat (limited to 'src/test/test_introduce.c')
-rw-r--r-- | src/test/test_introduce.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/test/test_introduce.c b/src/test/test_introduce.c index 72ab55510a..4fbfd18011 100644 --- a/src/test/test_introduce.c +++ b/src/test/test_introduce.c @@ -291,10 +291,8 @@ do_parse_test(uint8_t *plaintext, size_t plaintext_len, int phase) /* Get a key */ k = crypto_pk_new(); test_assert(k); - if (!k) goto done; r = crypto_pk_read_private_key_from_string(k, AUTHORITY_SIGNKEY_1, -1); test_assert(!r); - if (r) goto done; /* Get digest for future comparison */ r = crypto_pk_get_digest(k, digest); @@ -306,7 +304,6 @@ do_parse_test(uint8_t *plaintext, size_t plaintext_len, int phase) k, (void **)(&cell)); test_assert(r > 0); test_assert(cell); - if (!(cell && r > 0)) goto done; cell_len = r; /* Do early parsing */ |