Whitespace tweaks

This commit is contained in:
Nick Mathewson 2012-07-31 14:32:20 -04:00
parent 96c7612679
commit 92f5eaa235

View File

@ -1463,11 +1463,14 @@ find_rp_for_intro(const rend_intro_cell_t *intro,
} }
goto err; goto err;
} else {
need_free = 1;
} }
else need_free = 1; } else if (intro->version == 2) {
} else if (intro->version == 2) rp = intro->u.v2.extend_info; rp = intro->u.v2.extend_info;
else if (intro->version == 3) rp = intro->u.v3.extend_info; } else if (intro->version == 3) {
else { rp = intro->u.v3.extend_info;
} else {
if (err_msg_out) { if (err_msg_out) {
tor_asprintf(&err_msg, tor_asprintf(&err_msg,
"Unknown version %d in INTRODUCE2 cell", "Unknown version %d in INTRODUCE2 cell",
@ -1864,8 +1867,7 @@ rend_service_parse_intro_for_v3(
if (intro->u.v3.auth_type != REND_NO_AUTH) { if (intro->u.v3.auth_type != REND_NO_AUTH) {
intro->u.v3.auth_len = ntohs(get_uint16(buf + 2)); intro->u.v3.auth_len = ntohs(get_uint16(buf + 2));
ts_offset = 4 + intro->u.v3.auth_len; ts_offset = 4 + intro->u.v3.auth_len;
} } else {
else {
intro->u.v3.auth_len = 0; intro->u.v3.auth_len = 0;
ts_offset = 2; ts_offset = 2;
} }