From 522a6e27a2ab6013f6d948c19d6ef17c371f674a Mon Sep 17 00:00:00 2001 From: Klaas Freitag Date: Thu, 19 Apr 2012 16:12:05 +0200 Subject: [PATCH] Set module load error code after csync_vio_init failed. --- src/csync.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/csync.c b/src/csync.c index 6da14dd5c..cd2295f64 100644 --- a/src/csync.c +++ b/src/csync.c @@ -300,7 +300,8 @@ retry_vio_init: module[len-1] = '\0'; goto retry_vio_init; } - + /* Now vio init finally failed which means a module could not be found. */ + ctx->error_code = CSYNC_ERR_MODULE; SAFE_FREE(module); goto out; }