[or-cvs] [tor/master 3/7] Break early on unknown extendcircuit purpose
nickm at torproject.org
nickm at torproject.org
Mon Feb 22 17:47:26 UTC 2010
Author: Sebastian Hahn <sebastian at torproject.org>
Date: Mon, 22 Feb 2010 10:57:11 +0100
Subject: Break early on unknown extendcircuit purpose
Commit: b65ad83ebea7a454f7eee377069734175e42b244
Don't continue handling EXTENDCIRCUIT messages when we get an
unknown purpose.
---
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 40ad4a2..0f71855 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;
}
}
--
1.6.5
More information about the tor-commits
mailing list