]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - command.c
Do the RC4_ALIGN dance also for sideband connections.
[paraslash.git] / command.c
index f9bace34146e28ccaf7b0632e0fa34ede51de8aa..b67966fa0653cae2641a37823fcf81c2410b63ce 100644 (file)
--- a/command.c
+++ b/command.c
@@ -259,6 +259,14 @@ __printf_3_4 int send_sb_va(struct stream_cipher_context *scc, int band,
        return send_sb(scc, msg, ret, band, false);
 }
 
+/**
+ * Send an error message to a client.
+ *
+ * \param cc Client info.
+ * \param err The (positive) error code.
+ *
+ * \return The return value of the underlying call to send_sb_va().
+ */
 int send_strerror(struct command_context *cc, int err)
 {
        return cc->use_sideband?
@@ -984,7 +992,7 @@ __noreturn void handle_connect(int fd, const char *peername)
        /* send Welcome message */
        ret = write_va_buffer(fd, "This is para_server, version "
                PACKAGE_VERSION  ".\n"
-               "Features: sideband,foo\n"
+               "Features: sideband\n"
        );
        if (ret < 0)
                goto net_err;