Skip to content
Snippets Groups Projects
Commit b65ad83e authored by Sebastian Hahn's avatar Sebastian Hahn
Browse files

Break early on unknown extendcircuit purpose

Don't continue handling EXTENDCIRCUIT messages when we get an
unknown purpose.
parent dcf85eb1
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment