aboutsummaryrefslogtreecommitdiff
path: root/src/or/relay.c
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2012-10-02 20:39:58 -0400
committerRoger Dingledine <arma@torproject.org>2012-10-02 20:39:58 -0400
commit57b13ad5cc9423f53a105e5d0c0a83246e68adfc (patch)
treee6345ce170f83a3f9c5c6181b0b4db65bba14922 /src/or/relay.c
parenta80d8e09d3b5f393f2dc83148ef66c6e1d7f4015 (diff)
downloadtor-57b13ad5cc9423f53a105e5d0c0a83246e68adfc.tar
tor-57b13ad5cc9423f53a105e5d0c0a83246e68adfc.tar.gz
more consistently use [gs]et_uint8
Diffstat (limited to 'src/or/relay.c')
-rw-r--r--src/or/relay.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/or/relay.c b/src/or/relay.c
index 791091569..54f66346d 100644
--- a/src/or/relay.c
+++ b/src/or/relay.c
@@ -1231,7 +1231,7 @@ connection_edge_process_relay_cell(cell_t *cell, circuit_t *circ,
return 0;
}
if (circ->n_conn) {
- uint8_t trunc_reason = *(uint8_t*)(cell->payload + RELAY_HEADER_SIZE);
+ uint8_t trunc_reason = get_uint8(cell->payload + RELAY_HEADER_SIZE);
circuit_clear_cell_queue(circ, circ->n_conn);
connection_or_send_destroy(circ->n_circ_id, circ->n_conn,
trunc_reason);