mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-02 12:02:47 -05:00
Ensure our network layer is properly cleaned up before PuTTY exits.
Specifically, we explicitly closesocket() all open sockets, which appears to be necessary since otherwise Windows sends RST rather than FIN. I'm _sure_ that's a Windows bug, but there we go. [originally from svn r1574]
This commit is contained in:
6
windlg.c
6
windlg.c
@ -3365,7 +3365,7 @@ void verify_ssh_host_key(char *host, int port, char *keytype,
|
||||
if (mbret == IDYES)
|
||||
store_host_key(host, port, keytype, keystr);
|
||||
if (mbret == IDCANCEL)
|
||||
exit(0);
|
||||
cleanup_exit(0);
|
||||
}
|
||||
if (ret == 1) { /* key was absent */
|
||||
int mbret;
|
||||
@ -3375,7 +3375,7 @@ void verify_ssh_host_key(char *host, int port, char *keytype,
|
||||
if (mbret == IDYES)
|
||||
store_host_key(host, port, keytype, keystr);
|
||||
if (mbret == IDCANCEL)
|
||||
exit(0);
|
||||
cleanup_exit(0);
|
||||
}
|
||||
}
|
||||
|
||||
@ -3406,7 +3406,7 @@ void askcipher(char *ciphername, int cs)
|
||||
if (mbret == IDYES)
|
||||
return;
|
||||
else
|
||||
exit(0);
|
||||
cleanup_exit(0);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user