diff options
author | John Brooks <special@torproject.org> | 2016-05-09 13:43:14 -0400 |
---|---|---|
committer | John Brooks <special@torproject.org> | 2016-05-09 13:53:09 -0400 |
commit | 896271d525b2b31950572293c512224ca57cee02 (patch) | |
tree | 2f987b33a72911d566b385e90a66f47ea199f3cc /src/or/connection_edge.c | |
parent | b531fc7d9a8f75969b0446578ee4afcb109bae3d (diff) | |
download | tor-896271d525b2b31950572293c512224ca57cee02.tar.gz tor-896271d525b2b31950572293c512224ca57cee02.zip |
Use uint8_t for rend descriptor_cookie fields
Diffstat (limited to 'src/or/connection_edge.c')
-rw-r--r-- | src/or/connection_edge.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/connection_edge.c b/src/or/connection_edge.c index 729ef8a4c7..3ff02933c3 100644 --- a/src/or/connection_edge.c +++ b/src/or/connection_edge.c @@ -1503,7 +1503,7 @@ connection_ap_handshake_rewrite_and_attach(entry_connection_t *conn, rend_service_authorization_t *client_auth = rend_client_lookup_service_authorization(socks->address); - const char *cookie = NULL; + const uint8_t *cookie = NULL; rend_auth_type_t auth_type = REND_NO_AUTH; if (client_auth) { log_info(LD_REND, "Using previously configured client authorization " @@ -1515,7 +1515,7 @@ connection_ap_handshake_rewrite_and_attach(entry_connection_t *conn, /* Fill in the rend_data field so we can start doing a connection to * a hidden service. */ rend_data_t *rend_data = ENTRY_TO_EDGE_CONN(conn)->rend_data = - rend_data_client_create(socks->address, NULL, cookie, auth_type); + rend_data_client_create(socks->address, NULL, (char *) cookie, auth_type); if (rend_data == NULL) { return -1; } |