From: Marcel Poul Date: Tue, 6 Dec 2011 12:41:17 +0000 (+0000) Subject: close() not fclose() X-Git-Tag: merge_30_head_take2_after~32 X-Git-Url: http://scientific.zcu.cz/git/?a=commitdiff_plain;h=a0c91dd09e55bdd8da0c80adf1f161008b643fd8;p=jra1mw.git close() not fclose() --- diff --git a/emi.canl.canl-c/src/canl.c b/emi.canl.canl-c/src/canl.c index 2893545..23c189b 100644 --- a/emi.canl.canl-c/src/canl.c +++ b/emi.canl.canl-c/src/canl.c @@ -366,8 +366,8 @@ static void io_destroy(glb_ctx *cc, io_handler *io) io_cc->s_addr = NULL; } if (io_cc->sock) { - fclose (io_cc->sock); - io_cc->sock = NULL; + close (io_cc->sock); + io_cc->sock = 0; } if (io_cc->s_ctx) { /*TODO maybe new function because of BIO_free and SSL_free*/