فهرست منبع

* Fix blowfish not working correctly on 64bit

Bryan Drewery 15 سال پیش
والد
کامیت
43951e8e1d
2فایلهای تغییر یافته به همراه3 افزوده شده و 2 حذف شده
  1. 1 0
      doc/UPDATES
  2. 2 2
      src/crypto/bf_util.c

+ 1 - 0
doc/UPDATES

@@ -19,6 +19,7 @@
     This includes new set options: 'servers-ssl', 'servers6-ssl', 'server-port-ssl', 'server-use-ssl'
   * libcrypto (openssl) is now loaded at startup and is required.
   * Added TCL support. This is *only* a .tcl command currently, no scripts are loadable yet.
+  * Fix blowfish not working correctly on 64bit
 
 1.3.1 - http://wraith.botpack.net/milestone/1.3.1
   * Fix crash related to slowpart

+ 2 - 2
src/crypto/bf_util.c

@@ -32,8 +32,8 @@ static const char eggdrop_blowfish_base64_index[256] = {
 
 union bf_data {
   struct {
-    unsigned long left;
-    unsigned long right;
+    u_int32_t left;
+    u_int32_t right;
   } lr;
   BF_LONG bf_long;
 };