diff options
| author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2013-09-04 07:22:45 (GMT) |
|---|---|---|
| committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2013-09-04 07:22:45 (GMT) |
| commit | 9878106deb1fb3cf0c6c338f006ca9b168162eb7 (patch) | |
| tree | e80d5f727d70e081a7dc7285b869d914aa1eb186 /unix/tclUnixSock.c | |
| parent | 54223a5f7e90edf67dcf3332c655723eb272ac93 (diff) | |
| download | tcl-9878106deb1fb3cf0c6c338f006ca9b168162eb7.zip tcl-9878106deb1fb3cf0c6c338f006ca9b168162eb7.tar.gz tcl-9878106deb1fb3cf0c6c338f006ca9b168162eb7.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) { |
