diff options
-rw-r--r-- | pflocal/pf.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pflocal/pf.c b/pflocal/pf.c index b77f557e..72e2b813 100644 --- a/pflocal/pf.c +++ b/pflocal/pf.c @@ -47,7 +47,8 @@ S_socket_create (mach_port_t pf, err = sock_create (pipe_class, &sock); if (!err) err = sock_create_port (sock, port); - *port_type = MACH_MSG_TYPE_MAKE_SEND; + if (!err) + *port_type = MACH_MSG_TYPE_MAKE_SEND; return err; } |