aboutsummaryrefslogtreecommitdiff
path: root/src/or/buffers.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2014-09-29 09:17:20 -0400
committerNick Mathewson <nickm@torproject.org>2014-09-29 09:17:29 -0400
commitfcebc8da95af5ccb28d715a6897566ea1c190a03 (patch)
treec3c8a212d2aecfcd5b12079cf2a45cea7150c14e /src/or/buffers.c
parentc5ad890904b68596d1081ce92307f57e67a5e3e4 (diff)
downloadtor-fcebc8da95af5ccb28d715a6897566ea1c190a03.tar.gz
tor-fcebc8da95af5ccb28d715a6897566ea1c190a03.zip
Rename socks5 error code setting function again
I'd prefer not to use the name "send" for any function that doesn't really send things.
Diffstat (limited to 'src/or/buffers.c')
-rw-r--r--src/or/buffers.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/or/buffers.c b/src/or/buffers.c
index edb64ec1cf..d174f8147a 100644
--- a/src/or/buffers.c
+++ b/src/or/buffers.c
@@ -55,7 +55,7 @@
* forever.
*/
-static void send_socks5_error(socks_request_t *req,
+static void socks_request_set_socks5_error(socks_request_t *req,
socks5_reply_status_t reason);
static int parse_socks(const char *data, size_t datalen, socks_request_t *req,
@@ -1838,7 +1838,7 @@ fetch_ext_or_command_from_evbuffer(struct evbuffer *buf, ext_or_cmd_t **out)
* have Tor send it as error response to <b>req</b>.
*/
static void
-send_socks5_error(socks_request_t *req,
+socks_request_set_socks5_error(socks_request_t *req,
socks5_reply_status_t reason)
{
req->replylen = 10;
@@ -1984,7 +1984,7 @@ parse_socks(const char *data, size_t datalen, socks_request_t *req,
req->command != SOCKS_COMMAND_RESOLVE &&
req->command != SOCKS_COMMAND_RESOLVE_PTR) {
/* not a connect or resolve or a resolve_ptr? we don't support it. */
- send_socks5_error(req,SOCKS5_COMMAND_NOT_SUPPORTED);
+ socks_request_set_socks5_error(req,SOCKS5_COMMAND_NOT_SUPPORTED);
log_warn(LD_APP,"socks5: command %d not recognized. Rejecting.",
req->command);