diff options
author | Ralph Boehme <slow@samba.org> | 2020-02-24 14:29:01 +0100 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2020-02-25 17:44:44 +0000 |
commit | cbca811212a930b94f9917e5a82b6a95ab085e91 (patch) | |
tree | 3eed6bac27618a11c8ac011cd58769a3f6df3845 | |
parent | 99873724cd493366c9957fd9fe230d52a6f02691 (diff) | |
download | samba-cbca811212a930b94f9917e5a82b6a95ab085e91.tar.gz |
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 <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
-rw-r--r-- | source3/modules/vfs_default.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |