1
0
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:
Michael Adam 2008-08-12 15:19:17 +02:00
parent ec5956ab0d
commit 15fc2427f9

View File

@ -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;
}