X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/d4857987945f49a51477e26da18b46ef222b2346..5b80d07f712ff90cfae4c89084e25eb90dd2e510:/winstore.c diff --git a/winstore.c b/winstore.c index 3aef22fa..51f4ee7a 100644 --- a/winstore.c +++ b/winstore.c @@ -4,6 +4,13 @@ */ #include +#ifndef AUTO_WINSOCK +#ifdef WINSOCK_TWO +#include +#else +#include +#endif +#endif #include #include "putty.h" #include "storage.h" @@ -221,8 +228,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 +320,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);