]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
r16434@catbus: nickm | 2007-11-05 14:22:40 -0500
authorNick Mathewson <nickm@torproject.org>
Mon, 5 Nov 2007 19:23:55 +0000 (19:23 +0000)
committerNick Mathewson <nickm@torproject.org>
Mon, 5 Nov 2007 19:23:55 +0000 (19:23 +0000)
 Oops; fix compile

svn:r12387

src/or/command.c

index e33fe8036b7d09cadde9200b4b99ee8fd36225f8..a1724dc7092ae9a48e1d9a79c2090ebfecd0916d 100644 (file)
@@ -583,7 +583,7 @@ command_process_link_auth_cell(cell_t *cell, or_connection_t *conn)
 {
   or_handshake_state_t *s;
   char hmac[DIGEST_LEN];
-  uint16 len;
+  uint16_t len;
   size_t sig_len;
   const char *sig;
   char *checked = NULL;
@@ -607,7 +607,7 @@ command_process_link_auth_cell(cell_t *cell, or_connection_t *conn)
            "closing the connection");
     goto err;
   }
-  len = ntohs(get_uint16(cell.payload));
+  len = ntohs(get_uint16(cell->payload));
   if (len < 2 || 2+len > CELL_PAYLOAD_SIZE) {
     log_fn(LOG_PROTOCOL_WARN, LD_OR, "Bad length field (%d) on LINK_AUTH cell;"
            " closing the connection", (int)len);