X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Ftcpip.c;h=1136c9d67c62ce184a83e83b2d918019c84dcf65;hb=efcfc53528435f8d6fb3a7d41a22a64e9731a690;hp=689b0d561add3a302696e790ae1dde20db7dc800;hpb=7d8ce865edf7af1329b506590717fc846c9becb6;p=yaz-moved-to-github.git diff --git a/src/tcpip.c b/src/tcpip.c index 689b0d5..1136c9d 100644 --- a/src/tcpip.c +++ b/src/tcpip.c @@ -2,7 +2,7 @@ * Copyright (c) 1995-2004, Index Data * See the file LICENSE for details. * - * $Id: tcpip.c,v 1.9 2004-05-10 11:40:51 adam Exp $ + * $Id: tcpip.c,v 1.10 2004-09-21 14:59:01 adam Exp $ */ #include @@ -776,7 +776,7 @@ int tcpip_get(COMSTACK h, char **buf, int *bufsize) #endif } else if (!res) - return 0; + return hasread; hasread += res; } TRC (fprintf (stderr, " Out of read loop with hasread=%d, berlen=%d\n",