From ae1235bab4c7868dff7c921246a19632235ad9a0 Mon Sep 17 00:00:00 2001 From: Michael Poole Date: Sun, 7 Nov 2004 21:34:35 +0000 Subject: [PATCH] Assign timestamp before it might be used in exit_new_server(). git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@1266 c9e4aea6-c8fd-4c43-8297-357d70d61c8c --- ChangeLog | 5 +++++ ircd/m_server.c | 12 ++++++------ 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 94ab467..9a00b2b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-11-07 Michael Poole + + * ircd/m_server.c (m_server, ms_server): Assign timestamp before + it might be used in exit_new_server(). + 2004-11-07 Michael Poole * aclocal.m4, config.h.in, configure, ircd/Makefile.in: Regenerate diff --git a/ircd/m_server.c b/ircd/m_server.c index 9708cda..a15f66b 100644 --- a/ircd/m_server.c +++ b/ircd/m_server.c @@ -544,6 +544,9 @@ int mr_server(struct Client* cptr, struct Client* sptr, int parc, char* parv[]) /* * Detect protocol */ + hop = atoi(parv[2]); + start_timestamp = atoi(parv[3]); + timestamp = atoi(parv[4]); prot = parse_protocol(parv[5]); if (!prot) return exit_client_msg(cptr, sptr, &me, "Bogus protocol (%s)", parv[5]); @@ -551,9 +554,6 @@ int mr_server(struct Client* cptr, struct Client* sptr, int parc, char* parv[]) return exit_new_server(cptr, sptr, host, timestamp, "Incompatible protocol: %s", parv[5]); - hop = atoi(parv[2]); - start_timestamp = atoi(parv[3]); - timestamp = atoi(parv[4]); Debug((DEBUG_INFO, "Got SERVER %s with timestamp [%s] age %Tu (%Tu)", host, parv[4], start_timestamp, cli_serv(&me)->timestamp)); @@ -688,6 +688,9 @@ int ms_server(struct Client* cptr, struct Client* sptr, int parc, char* parv[]) /* * Detect protocol */ + hop = atoi(parv[2]); + start_timestamp = atoi(parv[3]); + timestamp = atoi(parv[4]); prot = parse_protocol(parv[5]); if (!prot) return exit_client_msg(cptr, sptr, &me, "Bogus protocol (%s)", parv[5]); @@ -695,9 +698,6 @@ int ms_server(struct Client* cptr, struct Client* sptr, int parc, char* parv[]) return exit_new_server(cptr, sptr, host, timestamp, "Incompatible protocol: %s", parv[5]); - hop = atoi(parv[2]); - start_timestamp = atoi(parv[3]); - timestamp = atoi(parv[4]); Debug((DEBUG_INFO, "Got SERVER %s with timestamp [%s] age %Tu (%Tu)", host, parv[4], start_timestamp, cli_serv(&me)->timestamp)); -- 2.20.1