mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-04 12:20:42 +09: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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user