From 5331489581dd4ca23a933452b6a9cbefa28691e1 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Sat, 1 Jan 2011 19:13:29 +0100 Subject: [PATCH] tests: Fixed the torture_callbacks test. We should zero the structure else ssh_callback_exists() can't be working. --- tests/unittests/torture_callbacks.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/unittests/torture_callbacks.c b/tests/unittests/torture_callbacks.c index 2c984ea7..c199f1a0 100644 --- a/tests/unittests/torture_callbacks.c +++ b/tests/unittests/torture_callbacks.c @@ -20,6 +20,7 @@ static void setup(void **state) { cb = malloc(sizeof(struct ssh_callbacks_struct)); assert_false(cb == NULL); + ZERO_STRUCTP(cb); cb->userdata = (void *) 0x0badc0de; cb->auth_function = myauthcallback;