diff options
author | Sebastian Hahn <sebastian@torproject.org> | 2010-02-22 10:57:11 +0100 |
---|---|---|
committer | Sebastian Hahn <sebastian@torproject.org> | 2010-02-22 10:57:11 +0100 |
commit | b65ad83ebea7a454f7eee377069734175e42b244 (patch) | |
tree | c15a45cdaf9f2f4807cbc559880182d5dc666c04 /src/or/control.c | |
parent | dcf85eb158690354b5446bc8603460acc6f86f47 (diff) | |
download | tor-b65ad83ebea7a454f7eee377069734175e42b244.tar.gz tor-b65ad83ebea7a454f7eee377069734175e42b244.zip |
Break early on unknown extendcircuit purpose
Don't continue handling EXTENDCIRCUIT messages when we get an
unknown purpose.
Diffstat (limited to 'src/or/control.c')
-rw-r--r-- | src/or/control.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/or/control.c b/src/or/control.c index 40ad4a25e1..0f71855286 100644 --- a/src/or/control.c +++ b/src/or/control.c @@ -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; } } |