aboutsummaryrefslogtreecommitdiff
path: root/exec/exec.c
diff options
context:
space:
mode:
Diffstat (limited to 'exec/exec.c')
-rw-r--r--exec/exec.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/exec/exec.c b/exec/exec.c
index f5995ac5..d78c54c5 100644
--- a/exec/exec.c
+++ b/exec/exec.c
@@ -773,6 +773,8 @@ servercopy (void *arg, mach_msg_type_number_t argsize, boolean_t argcopy,
{
if (! argcopy)
return arg;
+ if (! argsize)
+ return NULL;
/* ARG came in-line, so we must copy it. */
void *copy;