summaryrefslogtreecommitdiffstats
path: root/src/tests/asn1_test.c
diff options
context:
space:
mode:
authorSimon Rettberg2026-01-28 12:53:53 +0100
committerSimon Rettberg2026-01-28 12:53:53 +0100
commit8e82785c584dc13e20f9229decb95bd17bbe9cd1 (patch)
treea8b359e59196be5b2e3862bed189107f4bc9975f /src/tests/asn1_test.c
parentMerge branch 'master' into openslx (diff)
parent[prefix] Make unlzma.S compatible with 386 class CPUs (diff)
downloadipxe-openslx.tar.gz
ipxe-openslx.tar.xz
ipxe-openslx.zip
Merge branch 'master' into openslxopenslx
Diffstat (limited to 'src/tests/asn1_test.c')
-rw-r--r--src/tests/asn1_test.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/tests/asn1_test.c b/src/tests/asn1_test.c
index df3f01b63..4760b97fb 100644
--- a/src/tests/asn1_test.c
+++ b/src/tests/asn1_test.c
@@ -33,6 +33,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
#undef NDEBUG
#include <stdlib.h>
+#include <string.h>
#include <assert.h>
#include <ipxe/image.h>
#include <ipxe/asn1.h>
@@ -58,9 +59,6 @@ void asn1_okx ( struct asn1_test *test, const char *file, unsigned int line ) {
/* Sanity check */
assert ( sizeof ( out ) == digest->digestsize );
- /* Correct image data pointer */
- test->image->data = virt_to_user ( ( void * ) test->image->data );
-
/* Check that image is detected as correct type */
okx ( register_image ( test->image ) == 0, file, line );
okx ( test->image->type == test->type, file, line );