summaryrefslogtreecommitdiffstats
path: root/libtdenetwork
diff options
context:
space:
mode:
Diffstat (limited to 'libtdenetwork')
-rw-r--r--libtdenetwork/gpgmepp/callbacks.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/libtdenetwork/gpgmepp/callbacks.cpp b/libtdenetwork/gpgmepp/callbacks.cpp
index b352515d0..ba9c30bf0 100644
--- a/libtdenetwork/gpgmepp/callbacks.cpp
+++ b/libtdenetwork/gpgmepp/callbacks.cpp
@@ -83,7 +83,11 @@ gpgme_error_t passphrase_callback( void * opaque, const char * uid_hint, const c
if ( passphrase && *passphrase )
wipe( passphrase, strlen( passphrase ) );
free( passphrase );
- write( fd, "\n", 1 );
+ if (write( fd, "\n", 1 ) < 0) {
+ // An error occurred during write
+ // FIXME
+ printf("Something went wrong in libtdenetwork/gpgmepp/callbacks.cpp\n");
+ }
return err;
}