summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2023-01-04 22:48:58 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2023-01-04 22:48:58 +0000
commit5ed9a15a6ca1e702c0ebfdd022808fe00a67305c (patch)
treec317cd9eaa9755abecb85544e32eb1fc4f671d8e
parent05093e9055a89b92e3e68790485592d5ae1de6fa (diff)
Copy bytes from the_banana[] rather than banana()
Fixes test failure due to segfault seen on arm64 with xonly snap. ok djm
-rw-r--r--regress/usr.bin/ssh/unittests/sshkey/test_sshkey.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/regress/usr.bin/ssh/unittests/sshkey/test_sshkey.c b/regress/usr.bin/ssh/unittests/sshkey/test_sshkey.c
index 749aebc4e50..84019a16588 100644
--- a/regress/usr.bin/ssh/unittests/sshkey/test_sshkey.c
+++ b/regress/usr.bin/ssh/unittests/sshkey/test_sshkey.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: test_sshkey.c,v 1.22 2021/12/14 21:25:27 deraadt Exp $ */
+/* $OpenBSD: test_sshkey.c,v 1.23 2023/01/04 22:48:57 tb Exp $ */
/*
* Regress test for sshkey.h key management API
*
@@ -134,7 +134,7 @@ banana(u_char *s, size_t l)
memcpy(s + o, "nanananana", l - o);
break;
}
- memcpy(s + o, banana, sizeof(the_banana));
+ memcpy(s + o, the_banana, sizeof(the_banana));
}
}