[gmime] Fixed GpgMe passphrase callback function to not close the pipe



commit b5a89194ce0337b9770aadc8785609a58e775414
Author: Jeffrey Stedfast <jestedfa microsoft com>
Date:   Sat Mar 11 10:33:30 2017 -0500

    Fixed GpgMe passphrase callback function to not close the pipe

 gmime/gmime-gpgme-utils.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gmime/gmime-gpgme-utils.c b/gmime/gmime-gpgme-utils.c
index 20f7005..7b4a78b 100644
--- a/gmime/gmime-gpgme-utils.c
+++ b/gmime/gmime-gpgme-utils.c
@@ -83,6 +83,7 @@ g_mime_gpgme_passphrase_callback (void *hook, const char *uid_hint, const char *
        
        if (context->request_passwd) {
                stream = g_mime_stream_pipe_new (fd);
+               g_mime_stream_pipe_set_owner ((GMimeStreamPipe *) stream, FALSE);
                rv = context->request_passwd (context, uid_hint, passphrase_info, prev_was_bad, stream, &err);
                g_object_unref (stream);
        } else {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]