X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Ftcpip.c;h=fcdcce12a695d74c1635d65491f4fbe70700b9c7;hb=5a1156a0d8d50aa07af3eec75e939ed2065d3880;hp=10d08d1cc5b4a88bf43401d5f3dd7bd381793276;hpb=8b0914ffc98a04464440843a795920e09b98376c;p=yaz-moved-to-github.git diff --git a/src/tcpip.c b/src/tcpip.c index 10d08d1..fcdcce1 100644 --- a/src/tcpip.c +++ b/src/tcpip.c @@ -260,7 +260,7 @@ COMSTACK yaz_tcpip_create(int s, int flags, int protocol, static void tcpip_create_cred(COMSTACK cs) { tcpip_state *sp = (tcpip_state *) cs->cprivate; - sp->cred_ptr = xmalloc(sizeof(*sp->cred_ptr)); + sp->cred_ptr = (struct tcpip_cred_ptr *) xmalloc(sizeof(*sp->cred_ptr)); sp->cred_ptr->ref = 1; gnutls_certificate_allocate_credentials(&sp->cred_ptr->xcred); }