Commit 4cda5ca9 authored by Alexandre Julliard's avatar Alexandre Julliard

secur32: Set the close on exec flag on the ntlm_auth pipes.

parent df13cee2
...@@ -117,8 +117,10 @@ SECURITY_STATUS fork_helper(PNegoHelper *new_helper, const char *prog, ...@@ -117,8 +117,10 @@ SECURITY_STATUS fork_helper(PNegoHelper *new_helper, const char *prog,
helper->session_key = NULL; helper->session_key = NULL;
helper->neg_flags = 0; helper->neg_flags = 0;
helper->pipe_in = pipe_in[0]; helper->pipe_in = pipe_in[0];
fcntl( pipe_in[0], F_SETFD, 1 );
close(pipe_in[1]); close(pipe_in[1]);
helper->pipe_out = pipe_out[1]; helper->pipe_out = pipe_out[1];
fcntl( pipe_out[1], F_SETFD, 1 );
close(pipe_out[0]); close(pipe_out[0]);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment