summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-03-28 23:20:46 +0000
committerJeremy Allison <jra@samba.org>2001-03-28 23:20:46 +0000
commit559c1692e7b23aca69ca747098dc594b8e0e61d0 (patch)
treef2e832e55ba62bf197739bdfcfdda2c4831c0f8d
parentb7cd417ba69d81bc71cb4ba432fade517d82b552 (diff)
downloadsamba-559c1692e7b23aca69ca747098dc594b8e0e61d0.tar.gz
samba-559c1692e7b23aca69ca747098dc594b8e0e61d0.tar.bz2
samba-559c1692e7b23aca69ca747098dc594b8e0e61d0.zip
Insure fix. Don't read 4 bytes from data area unless there are 4 bytes to read.
Jeremy. (This used to be commit 3f9cf2e07bb6d429858e47ab6989ea8cf30d0217)
-rw-r--r--source3/smbd/trans2.c2
1 files changed, 1 insertions, 1 deletions
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));