mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
Break early on unknown extendcircuit purpose
Don't continue handling EXTENDCIRCUIT messages when we get an unknown purpose.
This commit is contained in:
@@ -2095,6 +2095,7 @@ handle_control_extendcircuit(control_connection_t *conn, uint32_t len,
|
||||
connection_printf_to_buf(conn, "552 Unknown purpose \"%s\"\r\n", purp);
|
||||
SMARTLIST_FOREACH(args, char *, cp, tor_free(cp));
|
||||
smartlist_free(args);
|
||||
goto done;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user