1
0
mirror of https://github.com/simh/simh.git synced 2026-03-04 10:34:40 +00:00

Properly shutdown prior connecting socket when establishing a new one

This commit is contained in:
Mark Pizzolato
2012-12-22 11:57:22 -08:00
parent 2a89d9bdc6
commit 6862041eca

View File

@@ -1760,6 +1760,7 @@ while (*tptr) {
else {
sock = sim_connect_sock (destination, "localhost", NULL);
if (sock != INVALID_SOCKET) {
_mux_detach_line (lp, FALSE, TRUE);
lp->destination = malloc(1+strlen(destination));
strcpy (lp->destination, destination);
lp->connecting = sock;