chiark / gitweb /
Do not use a random exit status when connchild gets 501 to mode stream
authorIan Jackson <ian@chiark.greenend.org.uk>
Wed, 2 Jun 2010 14:36:00 +0000 (15:36 +0100)
committerIan Jackson <ian@chiark.greenend.org.uk>
Wed, 2 Jun 2010 14:36:00 +0000 (15:36 +0100)
conn.c

diff --git a/conn.c b/conn.c
index 751c410..fa8316d 100644 (file)
--- a/conn.c
+++ b/conn.c
@@ -428,7 +428,7 @@ void connect_start(void) {
       default:
        warn("connect: unexpected response to MODE STREAM: %.50s",
             sanitise(buf,-1));
-       exitstatus= 2;
+       exitstatus= CONNCHILD_ESTATUS_NOSTREAM;
        break;
       }
     }