瀏覽代碼

Reducing differences against base code

Source commit: 9193c89c72e5700501abd6330fd9da0246679329
Martin Prikryl 6 年之前
父節點
當前提交
062c1e85b7
共有 1 個文件被更改,包括 1 次插入5 次删除
  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)