mirror of
https://github.com/samba-team/samba.git
synced 2025-02-10 13:57:47 +03:00
smbd: Remove a pointless NULL check
We've dereferenced smb_fname before, and talloc_move() never fails. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
5991f4e66b
commit
6b0cfcdbc3
@ -795,9 +795,6 @@ bool smbd_dirptr_get_entry(TALLOC_CTX *ctx,
|
||||
TALLOC_FREE(dname);
|
||||
|
||||
*_smb_fname = talloc_move(ctx, &smb_fname);
|
||||
if (*_smb_fname == NULL) {
|
||||
return false;
|
||||
}
|
||||
*_fname = fname;
|
||||
*_mode = mode;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user