summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864>2009-02-16 12:56:58 +0000
committerrburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864>2009-02-16 12:56:58 +0000
commit89ab54f0d732c8bc14d28a83f011cf5a0d683710 (patch)
tree5f8f592ca90fac17bcd5b2c2e279eafdaa255318
parent80de50711e88bf73c680a82bd22db58a6ac25265 (diff)
Another segfault found by DP :P
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2091 5417fbe8-f217-4b02-8779-1006273d7864
-rw-r--r--Changes2
-rw-r--r--src/nickserv.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/Changes b/Changes
index 4faa0a27b..b2dfdcd43 100644
--- a/Changes
+++ b/Changes
@@ -16,7 +16,7 @@ F Allow NS REGISTER to unregistered nicks, silly oversight. Thanks DP! :)
F Fix call order, thanks to DP
F Pass the right array to do_umode(), fixes mode tracking on Unreal. Thanks to DukePyrolator (yet again :P)
F Fix bs_set help, thanks to DukePyrolator! :)
-F Fix segfault, noted by DukePyrolator. Thanks!
+F Fix two segfaults, noted by DukePyrolator. Thanks!
F Fix part one of #1010, reported by DukePyrolator. (Language settings are not respected in message sending.) Thanks!
diff --git a/src/nickserv.c b/src/nickserv.c
index 92a91a6b3..e1fe3fae9 100644
--- a/src/nickserv.c
+++ b/src/nickserv.c
@@ -1115,6 +1115,7 @@ int delnick(NickAlias * na)
{
if (ircd->modeonunreg)
common_svsmode(finduser(na->nick), ircd->modeonunreg, "1");
+ u->nc = NULL;
}
delHostCore(na->nick); /* delete any vHost's for this nick */
@@ -1129,7 +1130,6 @@ int delnick(NickAlias * na)
if (!delcore(na->nc))
return 0;
na->nc = NULL;
- u->nc = NULL;
}
else
{