aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoger Dingledine <arma@torproject.org>2007-11-01 13:40:29 +0000
committerRoger Dingledine <arma@torproject.org>2007-11-01 13:40:29 +0000
commit4ead38a4e9763fde6fad703800bf4d1025a542dc (patch)
treeda035cdf331c2641291c1639461a6dc9fd773240
parent37c44b81dfbc4a5b8aa27ba26482bf37723bd5ee (diff)
downloadtor-4ead38a4e9763fde6fad703800bf4d1025a542dc.tar.gz
tor-4ead38a4e9763fde6fad703800bf4d1025a542dc.zip
fix compile errors on r12310 (thanks karsten)
svn:r12314
-rw-r--r--src/or/directory.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/or/directory.c b/src/or/directory.c
index 8bc2cde8f6..19619c43b2 100644
--- a/src/or/directory.c
+++ b/src/or/directory.c
@@ -1635,7 +1635,7 @@ connection_dir_client_reached_eof(dir_connection_t *conn)
"X-Descriptor-Not-New: ");
int rejected = 0;
if (rejected_hdr) {
- if (!strcmp(rejected, "Yes")) {
+ if (!strcmp(rejected_hdr, "Yes")) {
/* XXXX020 use this information; be sure to upload next one
* sooner. */
rejected = 1;
@@ -1909,7 +1909,7 @@ write_http_status_line(dir_connection_t *conn, int status,
static void
write_http_response_header_impl(dir_connection_t *conn, ssize_t length,
const char *type, const char *encoding,
- const cahr *extra_headers,
+ const char *extra_headers,
int cache_lifetime)
{
char date[RFC1123_TIME_LEN+1];
@@ -2704,8 +2704,8 @@ directory_handle_command_post(dir_connection_t *conn, const char *headers,
write_http_status_line(conn, 400, msg);
break;
case 0: /* accepted but discarded */
- write_http_response_header(conn, -1, NULL, NULL,
- "X-Descriptor-Not-New: Yes\r\n", -1);
+ write_http_response_header_impl(conn, -1, NULL, NULL,
+ "X-Descriptor-Not-New: Yes\r\n", -1);
break;
case 2: /* accepted */
write_http_status_line(conn, 200, msg);