From 559c1692e7b23aca69ca747098dc594b8e0e61d0 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 28 Mar 2001 23:20:46 +0000 Subject: Insure fix. Don't read 4 bytes from data area unless there are 4 bytes to read. Jeremy. (This used to be commit 3f9cf2e07bb6d429858e47ab6989ea8cf30d0217) --- source3/smbd/trans2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3') diff --git a/source3/smbd/trans2.c b/source3/smbd/trans2.c index 58e8056c31..5a7a5c72cb 100644 --- a/source3/smbd/trans2.c +++ b/source3/smbd/trans2.c @@ -1690,7 +1690,7 @@ static int call_trans2setfilepathinfo(connection_struct *conn, tvs.actime = sbuf.st_atime; mode = dos_mode(conn,fname,&sbuf); - if (total_data > 0 && IVAL(pdata,0) == total_data) { + if (total_data > 4 && IVAL(pdata,0) == total_data) { /* uggh, EAs for OS2 */ DEBUG(4,("Rejecting EA request with total_data=%d\n",total_data)); return(ERROR(ERRDOS,ERROR_EAS_NOT_SUPPORTED)); -- cgit