From 700df9b27a0623336c1ad78414be9fd572fd2e56 Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Fri, 18 Sep 2009 21:27:55 +0200 Subject: 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 --- source3/smbd/trans2.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'source3') 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; } -- cgit