diff options
author | Anderson Toshiyuki Sasaki <ansasaki@redhat.com> | 2019-06-13 18:37:30 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2019-06-14 07:48:01 +0200 |
commit | dc4d4cc8d4c90a6de06da3c07ec526c4d738db3d (patch) | |
tree | c08778e3390e2ed1fe001cd45230b2cc2dfe5d19 /tests | |
parent | 4fc37bb6fed94048ab4eeb361ec7c261aae41333 (diff) | |
download | libssh-dc4d4cc8d4c90a6de06da3c07ec526c4d738db3d.tar.gz libssh-dc4d4cc8d4c90a6de06da3c07ec526c4d738db3d.tar.xz libssh-dc4d4cc8d4c90a6de06da3c07ec526c4d738db3d.zip |
tests/torture_rekey: Do not mix integer types
In torture_rekey_time(), "long long" was used instead of uint32_t. This
makes the test to fail in some architectures where the sizes don't match.
Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/client/torture_rekey.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/client/torture_rekey.c b/tests/client/torture_rekey.c index 44d68e1d..d9d9f6a9 100644 --- a/tests/client/torture_rekey.c +++ b/tests/client/torture_rekey.c @@ -327,7 +327,7 @@ static void torture_rekey_time(void **state) int rc; char data[256]; unsigned int i; - long long time = 3; /* 3 seconds */ + uint32_t time = 3; /* 3 seconds */ struct ssh_crypto_struct *c = NULL; unsigned char *secret_hash = NULL; |