From 30112f921d2bc97160e4b7ef3762a9ad3ad15ea3 Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Tue, 24 Jul 2012 08:42:23 +0200 Subject: [PATCH] com_init(): Send error message only for non-sideband connections. If com_init() fails, this non-sideband error message is currently sent also for sideband connections, which confuses the client. Send it only for non-sideband connections. --- afs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/afs.c b/afs.c index a1381e73..f1e28f14 100644 --- a/afs.c +++ b/afs.c @@ -1063,7 +1063,7 @@ int com_init(struct command_context *cc) } ret = send_callback_request(create_tables_callback, &query, afs_cb_result_handler, cc); - if (ret < 0) + if (ret < 0 && !cc->use_sideband) /* ignore return value */ sc_send_va_buffer(&cc->scc, "%s\n", para_strerror(-ret)); return ret; -- 2.39.5