Cross-reference cleanup: winstore.c should not use fatalbox()
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Fri, 6 Oct 2000 12:10:26 +0000 (12:10 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Fri, 6 Oct 2000 12:10:26 +0000 (12:10 +0000)
git-svn-id: svn://svn.tartarus.org/sgt/putty@679 cda61777-01e9-0310-a592-d414129be87e

winstore.c

index 3aef22f..5597764 100644 (file)
@@ -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);