Преглед изворни кода

* Fixed binary config not decrypting data on rare occasions.

svn: 2314
Bryan Drewery пре 21 година
родитељ
комит
cce3f600db
2 измењених фајлова са 2 додато и 1 уклоњено
  1. 1 0
      doc/UPDATES
  2. 1 1
      src/binary.c

+ 1 - 0
doc/UPDATES

@@ -20,6 +20,7 @@ Lines prefixed with '-' were disabled before release and are not finished, or ar
 * 'localhub's now check minutely if their bots need added or hosts added to userlist.
 * Fixed bot username casing causing bad cookies. (disable cookies for upgrade)
 * Fixed binary config stating there was no change with -C under certain conditions.
+* Fixed binary config not decrypting data on rare occasions.
 * Fixed bots set +k being able to request ops.
 * Fixed bots asking for ops/invite when set to +d or +k.
 * Fixed delay of requesting op spamming logs with delay msgs.

+ 1 - 1
src/binary.c

@@ -303,7 +303,7 @@ static void edpack(settings_t *incfg, const char *hash, int what)
     enc_dec_string = decrypt_binary;
 
 #define dofield(_field) 		do {							\
-	if (_field && _field[0]) {								\
+	if (_field) {										\
 		len = sizeof(_field) - 1;							\
 		tmp = (char *) enc_dec_string(hash, (unsigned char *) _field, &len);		\
 		if (what == PACK_ENC) 								\