Fix compilation error on systems with no compat arch.

Currently only affects i386.
This commit is contained in:
Todd C. Miller
2022-05-11 20:07:59 -06:00
parent 64aba8f88e
commit f94e5d40db

View File

@@ -288,10 +288,13 @@ ptrace_setregs(int pid, struct sudo_ptrace_regs *regs)
struct iovec iov;
debug_decl(ptrace_setregs, SUDO_DEBUG_EXEC);
# ifdef SECCOMP_AUDIT_ARCH_COMPAT
if (regs->compat) {
iov.iov_base = &regs->u.compat;
iov.iov_len = sizeof(regs->u.compat);
} else {
} else
#endif
{
iov.iov_base = &regs->u.native;
iov.iov_len = sizeof(regs->u.native);
}