Fix handling of ntor handshakes received via CREATE cells

Fixes bug 7959; bugfix on 0.2.4.8-alpha.
This commit is contained in:
Nick Mathewson
2013-01-15 00:41:09 -05:00
parent ebf30613ea
commit beca92c31b
2 changed files with 8 additions and 1 deletions
+2 -1
View File
@@ -560,7 +560,8 @@ check_created_cell(const created_cell_t *cell)
{
switch (cell->cell_type) {
case CELL_CREATED:
if (cell->handshake_len != TAP_ONIONSKIN_REPLY_LEN)
if (cell->handshake_len != TAP_ONIONSKIN_REPLY_LEN &&
cell->handshake_len != NTOR_REPLY_LEN)
return -1;
break;
case CELL_CREATED_FAST: