ossp-pkg/sa/sa.c 1.23 -> 1.24
--- sa.c 2001/10/09 18:55:22 1.23
+++ sa.c 2001/10/09 19:58:46 1.24
@@ -1143,6 +1143,7 @@
goto done;
}
else if (n == 0) {
+ close(sa->fdSocket); /* stop TCP three-way handshake */
rv = SA_ERR_TMT;
goto done;
}
@@ -1159,6 +1160,7 @@
/* optionally set errno */
if (error != 0) {
+ close(sa->fdSocket); /* just in case */
errno = error;
rv = SA_ERR_SYS;
}
|
|