util-lib: fix a typo in rdrand
Otherwise, the fuzzers will fail to compile with MSan: ``` ../../src/systemd/src/basic/random-util.c:64:40: error: use of undeclared identifier 'sucess'; did you mean 'success'? msan_unpoison(&success, sizeof(sucess)); ^~~~~~ success ../../src/systemd/src/basic/alloc-util.h:169:50: note: expanded from macro 'msan_unpoison' ^ ../../src/systemd/src/basic/random-util.c:38:17: note: 'success' declared here uint8_t success; ^ 1 error generated. [80/545] Compiling C object 'src/basic/a6ba3eb@@basic@sta/process-util.c.o'. ninja: build stopped: subcommand failed. Fuzzers build failed ```
This commit is contained in:
parent
fd0a16d8a5
commit
7f2cdceaed
|
@ -61,7 +61,7 @@ int rdrand(unsigned long *ret) {
|
|||
"setc %1"
|
||||
: "=r" (*ret),
|
||||
"=qm" (success));
|
||||
msan_unpoison(&success, sizeof(sucess));
|
||||
msan_unpoison(&success, sizeof(success));
|
||||
if (!success)
|
||||
return -EAGAIN;
|
||||
|
||||
|
|
Loading…
Reference in New Issue