]> sjero.net Git - wget/blobdiff - src/init.c
Fix checking the URL length when filename is specified
[wget] / src / init.c
index 033da4f7634159396cc18a4632b32ead857c9a80..a64dabe6ad9f453cdc13282a2665771b2dee9763 100644 (file)
@@ -462,8 +462,7 @@ home_dir (void)
     }
 
   ret = home ? xstrdup (home) : NULL;
-  if (buf)
-    free (buf);
+  free (buf);
 
   return ret;
 }
@@ -1497,6 +1496,7 @@ cmd_spec_secure_protocol (const char *com, const char *val, void *place)
     { "sslv2", secure_protocol_sslv2 },
     { "sslv3", secure_protocol_sslv3 },
     { "tlsv1", secure_protocol_tlsv1 },
+    { "pfs", secure_protocol_pfs },
   };
   int ok = decode_string (val, choices, countof (choices), place);
   if (!ok)