add: comments about hairy code

pull/1506/head
Roman Proskuryakov 2016-01-23 03:51:11 +03:00
parent 94d6333107
commit b3655f2c60
2 changed files with 2 additions and 1 deletions

View File

@ -151,7 +151,7 @@ static int socks5_read_handshake_response(TCP_Client_Connection *TCP_conn)
if (ret == -1)
return 0;
if (data[0] == 5 && data[1] == 0)
if (data[0] == 5 && data[1] == 0) // FIXME magic numbers
return 1;
return -1;

View File

@ -190,6 +190,7 @@ static int is_path_used(const Onion_Client_Paths *onion_paths, const Node_format
continue;
}
// TODO: do we really have to check it with the last node?
if (ipport_equal(&onion_paths->paths[i].ip_port1, &nodes[ONION_PATH_LENGTH - 1].ip_port)) {
return i;
}