]> git.ipfire.org Git - thirdparty/samba.git/commit
smbd: Fix Coverity ID 1648344: print work-dir properly
authorShachar Sharon <ssharon@redhat.com>
Tue, 3 Jun 2025 08:31:20 +0000 (11:31 +0300)
committerVolker Lendecke <vl@samba.org>
Fri, 13 Jun 2025 09:55:09 +0000 (09:55 +0000)
commit686a39a2b04bbd0172960152cb09b9ce9e5c8e9f
tree806892d95f232c926273799d362b1cc01ac15aaf
parent9846179435945ee3022cbbd47fcbe1a8cd061a63
smbd: Fix Coverity ID 1648344: print work-dir properly

Commit 509081e7e ("smbd: expand logging in contend_dirleases()") added a
log-trace which calls get_current_dir_name() on-the-fly, which caused a
Coverity issue (memory-leak). Replace this call with the proper call to
SMB_VFS_GETWD (+ release memory).

Fixes Coverity issue 1648344

Signed-off-by: Shachar Sharon <ssharon@redhat.com>
Reviewed-by: Anoop C S <anoopcs@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Fri Jun 13 09:55:09 UTC 2025 on atb-devel-224
source3/smbd/smb2_oplock.c