diff options
author | teor <teor2345@gmail.com> | 2016-10-27 15:53:49 +1100 |
---|---|---|
committer | teor <teor2345@gmail.com> | 2016-10-31 17:02:21 +1100 |
commit | 3158777d35d8e03fdd77d9c227c2d04538d5fff3 (patch) | |
tree | a22123957ec76a74c7d4a29621d82de62a2d68a8 /src/or/networkstatus.c | |
parent | d81f2b5d81814b296e04e1964acf7eed79327970 (diff) | |
download | tor-3158777d35d8e03fdd77d9c227c2d04538d5fff3.tar.gz tor-3158777d35d8e03fdd77d9c227c2d04538d5fff3.zip |
Rename routerstatus_version_supports_ntor to *_supports_extend2_cells
This helps avoid the confusion that caused bug 20472.
Bugfix on commit 10aa913 from #19163 in tor-0.2.9.3-alpha.
Diffstat (limited to 'src/or/networkstatus.c')
-rw-r--r-- | src/or/networkstatus.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/or/networkstatus.c b/src/or/networkstatus.c index f30fe1607c..49baeb83b7 100644 --- a/src/or/networkstatus.c +++ b/src/or/networkstatus.c @@ -2360,10 +2360,10 @@ client_would_use_router(const routerstatus_t *rs, time_t now, /* We'd drop it immediately for being too old. */ return 0; } - if (!routerstatus_version_supports_ntor(rs, 1)) { - /* We'd ignore it because it doesn't support ntor. + if (!routerstatus_version_supports_extend2_cells(rs, 1)) { + /* We'd ignore it because it doesn't support EXTEND2 cells. * If we don't know the version, download the descriptor so we can - * check if it supports ntor. */ + * check if it supports EXTEND2 cells and ntor. */ return 0; } return 1; |