From 53185ba285991b24d88f5b3c6c4e9e0eed1c1431 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 17 Sep 2003 19:36:53 +0000 Subject: Fix coredump from Samba4 torture suite. Jeremy. (This used to be commit 640bc276ba3d1ab83cd8994bddd64fd745f75101) --- source3/smbd/files.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source3/smbd/files.c') diff --git a/source3/smbd/files.c b/source3/smbd/files.c index 1fe6f250e5..80544c9a30 100644 --- a/source3/smbd/files.c +++ b/source3/smbd/files.c @@ -405,6 +405,8 @@ files_struct *file_fsp(char *buf, int where) if (chain_fsp) return chain_fsp; + if (!buf) + return NULL; fnum = SVAL(buf, where); for (fsp=Files;fsp;fsp=fsp->next, count++) { -- cgit