From cbca811212a930b94f9917e5a82b6a95ab085e91 Mon Sep 17 00:00:00 2001 From: Ralph Boehme Date: Mon, 24 Feb 2020 14:29:01 +0100 Subject: VFS: default: avoid a crash in vfswrap_getxattrat_do_sync() Must use tevent_req_data() to get our tevent_req state, talloc_get_type_abort() will just crash as struct tevent_req != struct vfswrap_getxattrat_state. BUG: https://bugzilla.samba.org/show_bug.cgi?id=14293 Signed-off-by: Ralph Boehme Reviewed-by: Jeremy Allison --- source3/modules/vfs_default.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3') diff --git a/source3/modules/vfs_default.c b/source3/modules/vfs_default.c index b64071d6870..69a7eba5015 100644 --- a/source3/modules/vfs_default.c +++ b/source3/modules/vfs_default.c @@ -3325,7 +3325,7 @@ static struct tevent_req *vfswrap_getxattrat_send( static void vfswrap_getxattrat_do_sync(struct tevent_req *req) { - struct vfswrap_getxattrat_state *state = talloc_get_type_abort( + struct vfswrap_getxattrat_state *state = tevent_req_data( req, struct vfswrap_getxattrat_state); char *path = NULL; char *tofree = NULL; -- cgit v1.2.1