aboutsummaryrefslogtreecommitdiff
path: root/src/or/rendmid.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2004-11-02 02:28:51 +0000
committerRoger Dingledine <arma@torproject.org>2004-11-02 02:28:51 +0000
commit85c79ffbc7b965355c3b51cc81000d517089e74e (patch)
treeeafeb903a90d64be26fb900f567528caa1916b5b /src/or/rendmid.c
parent1433a0b26fcc1e48ac8001c5438e00d140dbf2a9 (diff)
downloadtor-85c79ffbc7b965355c3b51cc81000d517089e74e.tar
tor-85c79ffbc7b965355c3b51cc81000d517089e74e.tar.gz
canonicalize "src" and "dest" arg order in crypto.c (and others)
svn:r2644
Diffstat (limited to 'src/or/rendmid.c')
-rw-r--r--src/or/rendmid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/rendmid.c b/src/or/rendmid.c
index e5a342c08..4b885ae90 100644
--- a/src/or/rendmid.c
+++ b/src/or/rendmid.c
@@ -47,7 +47,7 @@ rend_mid_establish_intro(circuit_t *circ, const char *request, size_t request_le
/* Next 20 bytes: Hash of handshake_digest | "INTRODUCE" */
memcpy(buf, circ->handshake_digest, DIGEST_LEN);
memcpy(buf+DIGEST_LEN, "INTRODUCE", 9);
- if (crypto_digest(buf, DIGEST_LEN+9, expected_digest)<0) {
+ if (crypto_digest(expected_digest, buf, DIGEST_LEN+9) < 0) {
log_fn(LOG_WARN, "Error computing digest");
goto err;
}