diff options
| author | nijtmans@users.sourceforge.net <jan.nijtmans> | 2013-09-04 07:22:45 (GMT) |
|---|---|---|
| committer | nijtmans@users.sourceforge.net <jan.nijtmans> | 2013-09-04 07:22:45 (GMT) |
| commit | cff5fb89f0d61abcb92ee88eb25cd3e0543f25ae (patch) | |
| tree | e80d5f727d70e081a7dc7285b869d914aa1eb186 /unix/tclUnixSock.c | |
| parent | 435d3e8bb7341fc7e943e0bc35081dfd7605b16a (diff) | |
| download | tcl-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.c | 2 |
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) { |
