소스 검색

* 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) 								\