Browse Source

Reducing differences against base code

Source commit: 9193c89c72e5700501abd6330fd9da0246679329
Martin Prikryl 6 years ago
parent
commit
062c1e85b7
1 changed files with 1 additions and 5 deletions
  1. 1 5
      source/putty/sshpubk.c

+ 1 - 5
source/putty/sshpubk.c

@@ -984,7 +984,7 @@ int openssh_loadpub(FILE *fp, char **algorithm,
 #ifndef MPEXT
     line = chomp(fgetline(fp));
 #else
-    line = aline;
+    line = dupstr(aline);
 #endif
 
     base64 = strchr(line, ' ');
@@ -1036,17 +1036,13 @@ int openssh_loadpub(FILE *fp, char **algorithm,
         *commentptr = comment;
     else
         sfree(comment);
-#ifndef MPEXT
     sfree(line);
-#endif
     put_data(bs, pubblob, pubbloblen);
     sfree(pubblob);
     return TRUE;
 
   error:
-#ifndef MPEXT
     sfree(line);
-#endif
     sfree(comment);
     sfree(pubblob);
     if (errorstr)