X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;f=client_common.c;h=a3a471aedaab1f79a3f3091bf61572a716248598;hb=36ba180901dd97003208ee6c51b0795cf351cb03;hp=d9ed11f437b0e03c2d167865571a69e2c9955e33;hpb=ff12b505b227585daf5aecc822d6b2e8841c2be7;p=paraslash.git diff --git a/client_common.c b/client_common.c index d9ed11f4..a3a471ae 100644 --- a/client_common.c +++ b/client_common.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 1997-2012 Andre Noll + * Copyright (C) 1997-2013 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ @@ -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 */