1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-12-22 10:19:57 +01:00

Use "samethread" mode keyword for some es_fopenmem.

* dirmngr/ks-engine-hkp.c (armor_data): Add mode keyword.
* g10/call-dirmngr.c (ks_put_inq_cb): Ditto.
* scd/atr.c (atr_dump): Ditto.
This commit is contained in:
Werner Koch 2014-05-06 09:49:26 +02:00
parent 60e2fc7d38
commit 6477e51919
3 changed files with 3 additions and 3 deletions

View File

@ -925,7 +925,7 @@ armor_data (char **r_string, const void *data, size_t datalen)
*r_string = NULL;
fp = es_fopenmem (0, "rw");
fp = es_fopenmem (0, "rw,samethread");
if (!fp)
return gpg_error_from_syserror ();

View File

@ -593,7 +593,7 @@ ks_put_inq_cb (void *opaque, const char *line)
estream_t fp;
/* Parse the keyblock and send info lines back to the server. */
fp = es_fopenmem (0, "rw");
fp = es_fopenmem (0, "rw,samethread");
if (!fp)
err = gpg_error_from_syserror ();

View File

@ -50,7 +50,7 @@ atr_dump (const void *buffer, size_t buflen)
unsigned char chksum;
char *result;
fp = es_fopenmem (0, "rwb");
fp = es_fopenmem (0, "rwb,samethread");
if (!fp)
return NULL;