summaryrefslogtreecommitdiff
path: root/libfshelp
diff options
context:
space:
mode:
authorJustus Winter <justus@gnupg.org>2016-04-20 16:42:02 +0200
committerJustus Winter <justus@gnupg.org>2016-04-20 17:04:18 +0200
commit8e71c142348ed3d2ae6374cff47b7ec766005f53 (patch)
tree2362e356efaa1e0f9582dd3c1f2f392e609b5069 /libfshelp
parentb91ac2b9c65142beef19d44bbcdacd16e12c0920 (diff)
libfshelp: pass cookie to the callback function
Previously, NULL was passed as cookie. That notably caused some 'peropen' objects to be created without context. Fixes 0bb14d0b. * libfshelp/fetch-root.c (fshelp_fetch_root): Pass cookie to the callback function.
Diffstat (limited to 'libfshelp')
-rw-r--r--libfshelp/fetch-root.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libfshelp/fetch-root.c b/libfshelp/fetch-root.c
index cc9fa502..eb0f3152 100644
--- a/libfshelp/fetch-root.c
+++ b/libfshelp/fetch-root.c
@@ -134,7 +134,7 @@ fshelp_fetch_root (struct transbox *box, void *cookie,
fds[STDERR_FILENO] = reauth (getdport (STDERR_FILENO));
- err = fshelp_start_translator_long (fetch_underlying, NULL,
+ err = fshelp_start_translator_long (fetch_underlying, cookie,
argz, argz, argz_len,
fds, MACH_MSG_TYPE_COPY_SEND,
STDERR_FILENO + 1,