swap the order of the checks to not hide an error
commitcc57c2cb8c8d6bc0a47692b47a6fefc5adaf2510
authorOmar Polo <op@omarpolo.com>
Mon, 26 Feb 2024 16:46:58 +0000 (26 16:46 +0000)
committerOmar Polo <op@omarpolo.com>
Mon, 26 Feb 2024 16:46:58 +0000 (26 16:46 +0000)
treee007901eeff89b3ddd454d578f51ea4aa3fca908
parentfcece7180725bba9a781eaa892af379b1986208b
swap the order of the checks to not hide an error

If a libexec process returns an GOT_IMSG_ERROR that happens to be
smaller than the requested min_datalen, got_privsep_recv_imsg()
returns GOT_IMSG_PRIVSEP_LEN hiding the original error.

ok stsp@
lib/privsep.c