]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - client_common.c
Reject non-sideband connections.
[paraslash.git] / client_common.c
index 7bdb4738bab5feb15b4c7acb1180decb61ccfda5..a3a471aedaab1f79a3f3091bf61572a716248598 100644 (file)
@@ -345,6 +345,11 @@ static void client_post_select(struct sched *s, struct task *t)
                if (ret < 0 || n == 0)
                        goto out;
                ct->features = parse_features(buf);
+               if (!has_feature("sideband", ct)) {
+                       PARA_ERROR_LOG("server has no sideband support\n");
+                       ret = -E_INCOMPAT_FEAT;
+                       goto out;
+               }
                ct->status = CL_RECEIVED_WELCOME;
                return;
        case CL_RECEIVED_WELCOME: /* send auth command */