1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-09-11 13:30:43 +03:00

tests: Fixed the torture_callbacks test.

We should zero the structure else ssh_callback_exists() can't be
working.
This commit is contained in:
Andreas Schneider
2011-01-01 19:13:29 +01:00
parent 2945a42c75
commit 5331489581

View File

@@ -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;