From: Ralph Boehme Date: Mon, 24 Feb 2020 13:29:01 +0000 (+0100) Subject: VFS: default: avoid a crash in vfswrap_getxattrat_do_sync() X-Git-Tag: ldb-2.2.0~1611 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cbca811212a930b94f9917e5a82b6a95ab085e91;p=thirdparty%2Fsamba.git 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 --- 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;