소스 검색

* Possibly fixed a random segfault after linking/connecting to irc.
* now setting 'userlist = NULL' instead of 'userlist = -1' during transfer, no idea why it was -1 before...


svn: 2281

Bryan Drewery 21 년 전
부모
커밋
1f6fec91c3
2개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 0
      doc/UPDATES
  2. 2 1
      src/mod/share.mod/share.c

+ 1 - 0
doc/UPDATES

@@ -35,6 +35,7 @@ Lines prefixed with '-' were disabled before release and are not finished, or ar
 * Added code to prevent cmd_botcmd from being chained over botnet.
 * Disabled cmd_away/cmd_back over 'botcmd'
 * Fixed security flaw with 'auth-obscure', and improved: auth-obscure now gives a hash regardless of 'dccauth'.
+* Possibly fixed a random segfault after linking/connecting to irc.
 
 1.2.4
 * Fixed cmd_botset not displaying botnick.

+ 2 - 1
src/mod/share.mod/share.c

@@ -1225,7 +1225,8 @@ finish_share(int idx)
   }
   noshare = 0;
   ou = userlist;                /* Save old user list                   */
-  userlist = (struct userrec *) -1;       /* Do this to prevent .user messups     */
+  //userlist = (struct userrec *) -1;       /* Do this to prevent .user messups     */
+  userlist = NULL;
 
   /* Bot user pointers are updated to point to the new list, all others
    * are set to NULL. If our userfile will be overriden, just set _all_