diff options
author | Nick Mathewson <nickm@torproject.org> | 2003-03-19 21:47:18 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2003-03-19 21:47:18 +0000 |
commit | 7f7417cd299b7f8fd7f696f34183cbd6286454cf (patch) | |
tree | 68f57e8139f1384e24f3d756b101f5d7fb59db19 /src | |
parent | 4631f3dcdf43f21257e2081e6a42fdd841a6f878 (diff) | |
download | tor-7f7417cd299b7f8fd7f696f34183cbd6286454cf.tar.gz tor-7f7417cd299b7f8fd7f696f34183cbd6286454cf.zip |
Fix bug in client_send_auth
svn:r203
Diffstat (limited to 'src')
-rw-r--r-- | src/or/connection_or.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/connection_or.c b/src/or/connection_or.c index aca9e746e0..28e28b3c37 100644 --- a/src/or/connection_or.c +++ b/src/or/connection_or.c @@ -628,7 +628,7 @@ int or_handshake_server_process_auth(connection_t *conn) { /* generate message */ memcpy(buf+48,conn->nonce,8); /* append the nonce to the end of the message */ - *(uint32_t *)(buf+28) = htonl(conn->bandwidth); /* send max link utilisation */ + *(uint32_t *)(buf+44) = htonl(conn->bandwidth); /* send max link utilisation */ /* encrypt message */ retval = crypto_pk_public_encrypt(conn->pkey, buf, 56, cipher,RSA_PKCS1_PADDING); |