diff options
author | Nick Mathewson <nickm@torproject.org> | 2004-04-08 04:47:39 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2004-04-08 04:47:39 +0000 |
commit | bb46d782ab6943fbceee807a12b744db0fdbe712 (patch) | |
tree | cfb5d807aa2f8524451e3bd4ed79908f86226128 /src/or/rendservice.c | |
parent | 15de2010411170c6c2bc60b652a76c8f87548939 (diff) | |
download | tor-bb46d782ab6943fbceee807a12b744db0fdbe712.tar tor-bb46d782ab6943fbceee807a12b744db0fdbe712.tar.gz |
Be endianly-correct for rendezvous functionality
svn:r1565
Diffstat (limited to 'src/or/rendservice.c')
-rw-r--r-- | src/or/rendservice.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/rendservice.c b/src/or/rendservice.c index 0de9e414d..f2b9318c4 100644 --- a/src/or/rendservice.c +++ b/src/or/rendservice.c @@ -498,7 +498,7 @@ rend_service_intro_is_ready(circuit_t *circuit) /* Build the payload for a RELAY_ESTABLISH_INTRO cell. */ len = crypto_pk_asn1_encode(service->private_key, buf+2, RELAY_PAYLOAD_SIZE-2); - set_uint16(buf, len); + set_uint16(buf, htons(len)); len += 2; memcpy(auth, circuit->cpath->prev->handshake_digest, DIGEST_LEN); memcpy(auth+DIGEST_LEN, "INTRODUCE", 9); |