[svn] Only free PreClient struct when the rest of the Client

is freed, not immediately upon exit_client(). Doing this
would cause problems with sasl's new_local_user hook
vs hooks that exit the client there.
This commit is contained in:
jilles 2007-04-15 09:49:56 -07:00
parent 452f4d4bcc
commit ec3fbdecd2
3 changed files with 11 additions and 3 deletions

View file

@ -1,3 +1,12 @@
jilles 2007/04/14 21:53:28 UTC (20070414-3410)
Log:
Use TS6 prefix for server-server JOIN 0.
Changes: Modified:
+2 -1 trunk/modules/core/m_join.c (File Modified)
jilles 2007/04/14 20:58:56 UTC (20070414-3408) jilles 2007/04/14 20:58:56 UTC (20070414-3408)
Log: Log:
Use orighost in kill server notices. Use orighost in kill server notices.

View file

@ -1 +1 @@
#define SERNO "20070414-3408" #define SERNO "20070414-3410"

View file

@ -21,7 +21,7 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
* USA * USA
* *
* $Id: client.c 3319 2007-03-29 20:03:06Z jilles $ * $Id: client.c 3412 2007-04-15 16:49:56Z jilles $
*/ */
#include "stdinc.h" #include "stdinc.h"
#include "config.h" #include "config.h"
@ -1434,7 +1434,6 @@ exit_unknown_client(struct Client *client_p, struct Client *source_p, struct Cli
del_from_hostname_hash(source_p->host, source_p); del_from_hostname_hash(source_p->host, source_p);
del_from_client_hash(source_p->name, source_p); del_from_client_hash(source_p->name, source_p);
remove_client_from_list(source_p); remove_client_from_list(source_p);
free_pre_client(source_p);
SetDead(source_p); SetDead(source_p);
dlinkAddAlloc(source_p, &dead_list); dlinkAddAlloc(source_p, &dead_list);