git.samba.org
/
mdw
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c29438f
)
s3: smbd: Add missing out of memory check.
author
Jeremy Allison
<jra@samba.org>
Fri, 30 Jun 2017 18:34:13 +0000
(11:34 -0700)
committer
Jeremy Allison
<jra@samba.org>
Sat, 1 Jul 2017 01:07:11 +0000
(
03:07
+0200)
Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Richard Sharpe <realrichardsharpe@gmail.com>
source3/smbd/open.c
patch
|
blob
|
history
diff --git
a/source3/smbd/open.c
b/source3/smbd/open.c
index d7f471ed671a13993a9795631d7fb244023b9073..e8464ed83b2bba0e7b030bbfaf0cb48b6223f114 100644
(file)
--- a/
source3/smbd/open.c
+++ b/
source3/smbd/open.c
@@
-582,6
+582,10
@@
static int non_widelink_open(struct connection_struct *conn,
smb_fname->stream_name,
&smb_fname->st,
smb_fname->flags);
+ if (smb_fname_rel == NULL) {
+ saved_errno = ENOMEM;
+ goto out;
+ }
flags |= O_NOFOLLOW;