From 8e71c142348ed3d2ae6374cff47b7ec766005f53 Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Wed, 20 Apr 2016 16:42:02 +0200 Subject: 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. --- libfshelp/fetch-root.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libfshelp') 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, -- cgit v1.2.3