diff options
author | Günther Deschner <gd@samba.org> | 2009-09-18 21:27:55 +0200 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2009-09-18 21:31:37 +0200 |
commit | 700df9b27a0623336c1ad78414be9fd572fd2e56 (patch) | |
tree | 5d9a28ae9e9231a0411a883a03ebdb812dba804e /source3 | |
parent | 1f38aa0995f7ffa82f670fe5d36046dd6b8f44ac (diff) | |
download | samba-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')
-rw-r--r-- | source3/smbd/trans2.c | 4 |
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; } |