X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=src%2Ftcpip.c;h=a8f03bad70fc1714b36abc84c7c08e6f29bf3642;hp=bea92dfc6f4410425240f76ea8e153588c697372;hb=04aeb72237a5ed1b57b21c9b3610e7a68950ce83;hpb=20c28e99eaa71d4b73e8c03c8cfaf23653948da7 diff --git a/src/tcpip.c b/src/tcpip.c index bea92df..a8f03ba 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)