diff options
author | Simo Sorce <idra@samba.org> | 2002-12-31 10:23:37 +0000 |
---|---|---|
committer | Simo Sorce <idra@samba.org> | 2002-12-31 10:23:37 +0000 |
commit | 2eb7a80a46e1e2d7331a62d15c5754895285540f (patch) | |
tree | 9166505d5378d5b45bcda13d86b8bfb63892c82a /source3/smbd | |
parent | ed961ddf4474e55f410bbb1471cbeebff80e0011 (diff) | |
download | samba-2eb7a80a46e1e2d7331a62d15c5754895285540f.tar.gz samba-2eb7a80a46e1e2d7331a62d15c5754895285540f.tar.bz2 samba-2eb7a80a46e1e2d7331a62d15c5754895285540f.zip |
fix for bad check spotted by Ray Simard <ray@sylvan-glade.com>
(This used to be commit 63a669475b0ea319da12a87ee4635b1d071ff29f)
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/reply.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index de15faec81..4335728afc 100644 --- a/source3/smbd/reply.c +++ b/source3/smbd/reply.c @@ -1888,7 +1888,7 @@ int reply_writebraw(connection_struct *conn, char *inbuf,char *outbuf, int size, DEBUG(3,("writebraw1 fnum=%d start=%.0f num=%d wrote=%d sync=%d\n", fsp->fnum, (double)startpos, (int)numtowrite, (int)nwritten, (int)write_through)); - if (nwritten < numtowrite) { + if (nwritten < (ssize_t)numtowrite) { END_PROFILE(SMBwritebraw); return(UNIXERROR(ERRHRD,ERRdiskfull)); } |