X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Ftcpip.c;h=f6796373d51640401612aa742c7b541ff63839d0;hp=b4fbd9183da0f50b627b781a20a9eb8062227af0;hb=c9c54c9f75cfea59f26489d1b0ef011dafa4297e;hpb=1aa95d94a0084a5528b97807033b4833e8c201c4 diff --git a/src/tcpip.c b/src/tcpip.c index b4fbd91..f679637 100644 --- a/src/tcpip.c +++ b/src/tcpip.c @@ -1019,7 +1019,9 @@ COMSTACK tcpip_accept(COMSTACK h) TRC(fprintf(stderr, "tcpip_accept h=%p pid=%d\n", h, getpid())); if (h->state == CS_ST_INCON) { +#if HAVE_GNUTLS_H tcpip_state *st = (tcpip_state *)h->cprivate; +#endif tcpip_state *state = tcpip_state_create(); cnew = (COMSTACK) xmalloc(sizeof(*cnew)); @@ -1228,10 +1230,10 @@ int tcpip_get(COMSTACK h, char **buf, int *bufsize) h->cerrno = CSYSERR; return -1; } +#endif } else if (!res) return hasread; -#endif } hasread += res; if (hasread > h->max_recv_bytes)