mirror of
https://github.com/samba-team/samba.git
synced 2024-12-28 07:21:54 +03:00
Make sure to always set errno on error path in OpenDir (and hence scan_directory).
Michael
This commit is contained in:
parent
ec5956ab0d
commit
15fc2427f9
@ -1084,6 +1084,7 @@ struct smb_Dir *OpenDir(TALLOC_CTX *mem_ctx, connection_struct *conn,
|
||||
|
||||
dirp->dir_path = talloc_strdup(dirp, name);
|
||||
if (!dirp->dir_path) {
|
||||
errno = ENOMEM;
|
||||
goto fail;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user