git.samba.org
/
kai
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ac9f55b
)
Make sure to always set errno on error path in OpenDir (and hence scan_directory).
author
Michael Adam
<obnox@samba.org>
Tue, 12 Aug 2008 13:19:17 +0000
(15:19 +0200)
committer
Michael Adam
<obnox@samba.org>
Tue, 12 Aug 2008 19:37:37 +0000
(21:37 +0200)
Michael
(This used to be commit
15fc2427f91da697e0e91f7f34b0f0c6e230a9a5
)
source3/smbd/dir.c
patch
|
blob
|
history
diff --git
a/source3/smbd/dir.c
b/source3/smbd/dir.c
index 74cd63ddda1f0b1b7c4ff89861cdc364817d2397..c2735c032a7527a1729fbc757d476ed2b64e1ed1 100644
(file)
--- a/
source3/smbd/dir.c
+++ b/
source3/smbd/dir.c
@@
-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;
}