Selaa lähdekoodia

Fix conversion of cmdpasses from 1.3 format.

Spotted by:	scan-build
Bryan Drewery 11 vuotta sitten
vanhempi
commit
14fa2065ea
2 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  1. 1 0
      doc/UPDATES
  2. 1 1
      src/dccutil.cc

+ 1 - 0
doc/UPDATES

@@ -14,6 +14,7 @@ maint
     a binary that would rely on having a specific compiler version installed
     and avoids issues when updating the local compiler. This also fixes
     building a binary with GCC on FreeBSD and using it on a clang-only system.
+  * Fix conversion of command passes from ancient 1.3 format.
 
 1.4.5
   * Remove ahbl as it now positively identifies all hosts as abusive

+ 1 - 1
src/dccutil.cc

@@ -1157,7 +1157,7 @@ int check_cmd_pass(const char *cmd, char *pass)
 
         simple_snprintf(ctmp, sizeof(ctmp), "%s %s", cmd, epass);
         free(epass);
-        set_cmd_pass(tmp, 1);
+        set_cmd_pass(ctmp, 1);
         return 1;
       }