summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/input/input_smb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/input/input_smb.c b/src/input/input_smb.c
index 83833a8cd..42bd7faf4 100644
--- a/src/input/input_smb.c
+++ b/src/input/input_smb.c
@@ -17,7 +17,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*
- * $Id: input_smb.c,v 1.8 2006/02/14 18:42:13 dsalt Exp $
+ * $Id: input_smb.c,v 1.9 2006/03/18 09:25:02 tmattern Exp $
*/
@@ -76,7 +76,7 @@ smb_plugin_read (input_plugin_t *this_gen, char *buf, off_t len)
while (num_bytes < len)
{
n = smbc_read( this->fd, buf+num_bytes, len-num_bytes );
- if (n<1) return -1;
+ if (n<0) return -1;
if (!n) return num_bytes;
num_bytes += n;
}