mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-03-16 12:03:03 -05:00
Cross-reference cleanup: winstore.c should not use fatalbox()
[originally from svn r679]
This commit is contained in:
parent
a46e11406e
commit
91ca2edb40
@ -221,8 +221,6 @@ int verify_host_key(char *hostname, int port, char *keytype, char *key) {
|
|||||||
*/
|
*/
|
||||||
otherstr = smalloc(len);
|
otherstr = smalloc(len);
|
||||||
regname = smalloc(3*(strlen(hostname)+strlen(keytype))+15);
|
regname = smalloc(3*(strlen(hostname)+strlen(keytype))+15);
|
||||||
if (!otherstr || !regname)
|
|
||||||
fatalbox("Out of memory");
|
|
||||||
|
|
||||||
hostkey_regname(regname, hostname, port, keytype);
|
hostkey_regname(regname, hostname, port, keytype);
|
||||||
|
|
||||||
@ -315,8 +313,6 @@ void store_host_key(char *hostname, int port, char *keytype, char *key) {
|
|||||||
HKEY rkey;
|
HKEY rkey;
|
||||||
|
|
||||||
regname = smalloc(3*(strlen(hostname)+strlen(keytype))+15);
|
regname = smalloc(3*(strlen(hostname)+strlen(keytype))+15);
|
||||||
if (!regname)
|
|
||||||
fatalbox("Out of memory");
|
|
||||||
|
|
||||||
hostkey_regname(regname, hostname, port, keytype);
|
hostkey_regname(regname, hostname, port, keytype);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user