git://scientific.zcu.cz
/
jra1mw.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a284138
)
close() not fclose()
author
Marcel Poul
<marcel.poul@cern.ch>
Tue, 6 Dec 2011 12:41:17 +0000
(12:41 +0000)
committer
Marcel Poul
<marcel.poul@cern.ch>
Tue, 6 Dec 2011 12:41:17 +0000
(12:41 +0000)
emi.canl.canl-c/src/canl.c
patch
|
blob
|
blame
|
history
diff --git
a/emi.canl.canl-c/src/canl.c
b/emi.canl.canl-c/src/canl.c
index
2893545
..
23c189b
100644
(file)
--- 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) {
-
f
close (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*/