summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2009-09-18 21:27:55 +0200
committerGünther Deschner <gd@samba.org>2009-09-18 21:31:37 +0200
commit700df9b27a0623336c1ad78414be9fd572fd2e56 (patch)
tree5d9a28ae9e9231a0411a883a03ebdb812dba804e /source3/smbd
parent1f38aa0995f7ffa82f670fe5d36046dd6b8f44ac (diff)
downloadsamba-700df9b27a0623336c1ad78414be9fd572fd2e56.tar.gz
samba-700df9b27a0623336c1ad78414be9fd572fd2e56.tar.bz2
samba-700df9b27a0623336c1ad78414be9fd572fd2e56.zip
s3-smbd: fix get_ea_names_from_file() and check for pnames pointer.
This fixes smbd from crashing all the time. Jeremy, Volker, please check. Guenther
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/trans2.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c
index 85eb73749a..ce458126d3 100644
--- a/source3/smbd/trans2.c
+++ b/source3/smbd/trans2.c
@@ -156,7 +156,9 @@ NTSTATUS get_ea_names_from_file(TALLOC_CTX *mem_ctx, connection_struct *conn,
ssize_t sizeret = -1;
if (!lp_ea_support(SNUM(conn))) {
- *pnames = NULL;
+ if (pnames) {
+ *pnames = NULL;
+ }
*pnum_names = 0;
return NT_STATUS_OK;
}