From e26bbf8fb8de9dfe254fb695ff6ed7aa605b17cb Mon Sep 17 00:00:00 2001 From: Perry Lorier Date: Thu, 6 Apr 2000 04:00:28 +0000 Subject: [PATCH] Author: Isomer Log message: Fixed core during check_pings() Thanks Maniac-. git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@134 c9e4aea6-c8fd-4c43-8297-357d70d61c8c --- ChangeLog | 7 +++++-- ircd/ircd.c | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 519842b..68a7ad7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,7 @@ -2000-03-30 Perry Lorier +2000-04-06 Perry Lorier + * ircd/ircd.c: Fix core during pinging (oops) + +2000-04-06 Perry Lorier * ircd/send.c: fixed wrong ident being sent to channels bug. * include/numerics.h: Updated some of the numerics from other networks. Flagged some as 'unused' by undernet. @@ -298,7 +301,7 @@ # # ChangeLog for ircu2.10.11 # -# $Id: ChangeLog,v 1.60 2000-04-06 03:48:04 isomer Exp $ +# $Id: ChangeLog,v 1.61 2000-04-06 04:00:28 isomer Exp $ # # Insert new changes at beginning of the change list. # diff --git a/ircd/ircd.c b/ircd/ircd.c index 64395cc..3afb586 100644 --- a/ircd/ircd.c +++ b/ircd/ircd.c @@ -335,7 +335,7 @@ static time_t check_pings(void) /* Display message if they have sent a NICK and a USER but no * nospoof PONG. */ - if (*cptr->name && *cptr->user->username) { + if (*cptr->name && cptr->user && *cptr->user->username) { sendto_one(cptr, ":%s %d %s :Your client may not be compatible with this server.", me.name, ERR_BADPING, cptr->name); -- 2.20.1