if (debug) log_d("readfromclient: fd=%d, ibp=%d, bytestoread=%d, r=%d", p->cfd, p->ibp, bytestoread, r); 
static int readfromclient(struct pipe_params *p){	size_t bytestoread;	ssize_t r;	bytestoread = p->isize - p->ibp;	if (bytestoread > p->imax)		bytestoread = p->imax;	if (bytestoread == 0) {		log_d("readfromclient: bytestoread is zero!");		p->error_condition = STUB_ERROR_CLIENT;		return -1;	}	r = recv(p->cfd, p->ibuf + p->ibp, bytestoread, 0);	switch (r) {	case -1:		switch (errno) {		default:			lerror("readfromclient");		case ECONNRESET:		case EPIPE:			p->error_condition = STUB_ERROR_CLIENT;			return -1;		case EAGAIN:			break;		}		break;	case 0:		log_d("readfromclient: client went away while posting data");		p->error_condition = STUB_ERROR_CLIENT;		return -1;	default:		p->t = current_time;		p->cn->nread += r;		p->ibp += r;		p->imax -= r;		break;	}	return 0;}
8520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/8520/0d2de3757323e5412cd086058af8f3169307b579/stub.c/buggy/src/stub.c