aboutsummaryrefslogtreecommitdiff
path: root/tests/unittests/torture_server_x11.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unittests/torture_server_x11.c')
-rw-r--r--tests/unittests/torture_server_x11.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/unittests/torture_server_x11.c b/tests/unittests/torture_server_x11.c
index b12be556..4395dbf1 100644
--- a/tests/unittests/torture_server_x11.c
+++ b/tests/unittests/torture_server_x11.c
@@ -21,9 +21,13 @@ struct hostkey_state {
static int setup(void **state) {
struct hostkey_state *h;
mode_t mask;
+ int rc;
ssh_threads_set_callbacks(ssh_threads_get_pthread());
- ssh_init();
+ rc = ssh_init();
+ if (rc != SSH_OK) {
+ return -1;
+ }
h = malloc(sizeof(struct hostkey_state));
assert_non_null(h);