summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixSock.c
diff options
context:
space:
mode:
authornijtmans@users.sourceforge.net <jan.nijtmans>2013-09-04 07:22:45 (GMT)
committernijtmans@users.sourceforge.net <jan.nijtmans>2013-09-04 07:22:45 (GMT)
commitcff5fb89f0d61abcb92ee88eb25cd3e0543f25ae (patch)
treee80d5f727d70e081a7dc7285b869d914aa1eb186 /unix/tclUnixSock.c
parent435d3e8bb7341fc7e943e0bc35081dfd7605b16a (diff)
downloadtcl-cff5fb89f0d61abcb92ee88eb25cd3e0543f25ae.zip
tcl-cff5fb89f0d61abcb92ee88eb25cd3e0543f25ae.tar.gz
tcl-cff5fb89f0d61abcb92ee88eb25cd3e0543f25ae.tar.bz2
Fix 3 trivial (possible) errors, discovered by covertity.com
Diffstat (limited to 'unix/tclUnixSock.c')
-rw-r--r--unix/tclUnixSock.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/unix/tclUnixSock.c b/unix/tclUnixSock.c
index 9c3d7eb..a6360c2 100644
--- a/unix/tclUnixSock.c
+++ b/unix/tclUnixSock.c
@@ -1358,6 +1358,7 @@ Tcl_OpenTcpServer(
my_errno = errno;
}
close(sock);
+ sock = -1;
continue;
}
if (port == 0 && chosenport == 0) {
@@ -1380,6 +1381,7 @@ Tcl_OpenTcpServer(
my_errno = errno;
}
close(sock);
+ sock = -1;
continue;
}
if (statePtr == NULL) {