aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cynapses.org>2011-01-01 19:13:29 +0100
committerAndreas Schneider <asn@cynapses.org>2011-01-01 19:14:54 +0100
commit5331489581dd4ca23a933452b6a9cbefa28691e1 (patch)
tree5017c0b709e159df877e93db4e1fdd88c01572b0 /tests
parent2945a42c756c608438cc7da9e329ee64ce14db1a (diff)
downloadlibssh-5331489581dd4ca23a933452b6a9cbefa28691e1.tar.gz
libssh-5331489581dd4ca23a933452b6a9cbefa28691e1.tar.xz
libssh-5331489581dd4ca23a933452b6a9cbefa28691e1.zip
tests: Fixed the torture_callbacks test.
We should zero the structure else ssh_callback_exists() can't be working.
Diffstat (limited to 'tests')
-rw-r--r--tests/unittests/torture_callbacks.c1
1 files changed, 1 insertions, 0 deletions
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;