1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-03 22:56:33 +02:00

Simply use gnupg_create_pipe for normal pipe creation.

Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
This commit is contained in:
NIIBE Yutaka 2024-07-03 14:23:19 +09:00
parent 19df973df0
commit 72a1c1b872
No known key found for this signature in database
GPG key ID: 640114AF89DE6054
2 changed files with 6 additions and 6 deletions

View file

@ -428,9 +428,9 @@ _gpg_encrypt (ctrl_t ctrl,
assert ((reader_mb == NULL) != (cipher_stream == NULL));
/* Create two pipes. */
err = gnupg_create_outbound_pipe (outbound_fds, NULL, 0);
err = gnupg_create_pipe (outbound_fds);
if (!err)
err = gnupg_create_inbound_pipe (inbound_fds, NULL, 0);
err = gnupg_create_pipe (inbound_fds);
if (err)
{
log_error (_("error creating a pipe: %s\n"), gpg_strerror (err));
@ -612,9 +612,9 @@ _gpg_decrypt (ctrl_t ctrl,
assert ((reader_mb == NULL) != (plain_stream == NULL));
/* Create two pipes. */
err = gnupg_create_outbound_pipe (outbound_fds, NULL, 0);
err = gnupg_create_pipe (outbound_fds);
if (!err)
err = gnupg_create_inbound_pipe (inbound_fds, NULL, 0);
err = gnupg_create_pipe (inbound_fds);
if (err)
{
log_error (_("error creating a pipe: %s\n"), gpg_strerror (err));