X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/putty/blobdiff_plain/d4857987945f49a51477e26da18b46ef222b2346..9c41b8ea363252c09541b8bc9a81db93237aacb2:/winstore.c diff --git a/winstore.c b/winstore.c index 3aef22fa..55977648 100644 --- a/winstore.c +++ b/winstore.c @@ -221,8 +221,6 @@ int verify_host_key(char *hostname, int port, char *keytype, char *key) { */ otherstr = smalloc(len); regname = smalloc(3*(strlen(hostname)+strlen(keytype))+15); - if (!otherstr || !regname) - fatalbox("Out of memory"); hostkey_regname(regname, hostname, port, keytype); @@ -315,8 +313,6 @@ void store_host_key(char *hostname, int port, char *keytype, char *key) { HKEY rkey; regname = smalloc(3*(strlen(hostname)+strlen(keytype))+15); - if (!regname) - fatalbox("Out of memory"); hostkey_regname(regname, hostname, port, keytype);