From: Volker Lendecke Date: Mon, 13 Jan 2025 10:45:06 +0000 (+0100) Subject: pysmbd: Init mangle_fns X-Git-Tag: samba-4.22.0rc3~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=836ff80b95403519f6ea925d3c45fcf191bc41d1;p=thirdparty%2Fsamba.git pysmbd: Init mangle_fns openat_pathref_fsp() eventually calls mangling functions, so we have to initialize them. Bug: https://bugzilla.samba.org/show_bug.cgi?id=15807 Signed-off-by: Volker Lendecke Reviewed-by: Douglas Bagnall (cherry picked from commit 0a9946258eb4587f5c132805d7c44062c377f375) --- diff --git a/source3/smbd/pysmbd.c b/source3/smbd/pysmbd.c index 9fe885a51b0..26286afe945 100644 --- a/source3/smbd/pysmbd.c +++ b/source3/smbd/pysmbd.c @@ -60,6 +60,8 @@ static connection_struct *get_conn_tos( struct smb_filename cwd_fname = {0}; int ret; + mangle_reset_cache(); + if (!posix_locking_init(false)) { PyErr_NoMemory(); return NULL;