Browse Source

Tracing (SSH session closing)

Source commit: b790a15a9d297ca13e3c8e6d0643aba3a2460d04
Martin Prikryl 8 years ago
parent
commit
b747cf21d1
1 changed files with 4 additions and 0 deletions
  1. 4 0
      source/putty/windows/winnet.c

+ 4 - 0
source/putty/windows/winnet.c

@@ -1758,7 +1758,9 @@ int select_result(WPARAM wParam, LPARAM lParam)
 	    }
 	}
 	if (err != 0)
+	{
 	    return plug_closing(s->plug, winsock_error_string(err), err, 0);
+	}
 	else
 	    return 1;
     }
@@ -1867,7 +1869,9 @@ int select_result(WPARAM wParam, LPARAM lParam)
 		if (ret)
 		    open &= plug_receive(s->plug, 0, buf, ret);
 		else
+		{
 		    open &= plug_closing(s->plug, NULL, 0, 0);
+		}
 	    }
 	} while (ret > 0);
 	return open;