diff options
Diffstat (limited to 'src/or/control.c')
-rw-r--r-- | src/or/control.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/or/control.c b/src/or/control.c index c91890cf6c..39deb8d266 100644 --- a/src/or/control.c +++ b/src/or/control.c @@ -2631,10 +2631,11 @@ connection_control_process_inbuf(control_connection_t *conn) /* Line not all here yet. Wait. */ return 0; else if (r == -1) { - while (conn->incoming_cmd_len < data_len+conn->incoming_cmd_cur_len) - conn->incoming_cmd_len *= 2; - conn->incoming_cmd = tor_realloc(conn->incoming_cmd, - conn->incoming_cmd_len); + /*XXXX020 impose some maximum on length! */ + while (conn->incoming_cmd_len < data_len+conn->incoming_cmd_cur_len) + conn->incoming_cmd_len *= 2; + conn->incoming_cmd = tor_realloc(conn->incoming_cmd, + conn->incoming_cmd_len); } } while (r != 1); |