Commit ba978712 authored by Matt Edman's avatar Matt Edman
Browse files

r2046@adrastea: edmanm | 2007-08-23 14:50:15 -0400

 Put in a hack to deal with Tor 0.2.0.5-alpha's spec-defying PROTOCOLINFO
 response.


svn:r1863
parent d865669a
Loading
Loading
Loading
Loading
+5 −1
Changes for src/control/controlsocket.cpp: 5 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -195,7 +195,11 @@ ControlSocket::readReply(ControlReply &reply, QString *errmsg)

    /* If the reply line contains data, then parse out the data up until the
     * trailing CRLF "." CRLF */
    if (c == QChar('+')) {
    if (c == QChar('+') &&
        !line.startsWith("250+PROTOCOLINFO")) {
        /* XXX The second condition above is a hack to deal with Tor
         * 0.2.0.5-alpha that gives a malformed PROTOCOLINFO reply. This
         * should be removed once that version of Tor is sufficiently dead. */
      while (true) {
        if (!readLine(line, errmsg)) {
          return false;