From ac1f277f2b343ecbeeda235696ce04eb723c3ac7 Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 16 Apr 2004 16:19:41 +0000 Subject: Yet more 'bad cookie' fixes :/ git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@626 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/inspircd.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/inspircd.cpp') diff --git a/src/inspircd.cpp b/src/inspircd.cpp index c3164875d..bec2954b6 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -6654,10 +6654,11 @@ void handle_amp(char token,char* params,serverrec* source,serverrec* reply, char } } +long authcookie; + void process_restricted_commands(char token,char* params,serverrec* source,serverrec* reply, char* udp_host,char* ipaddr,int port) { - long authcookie = rand()*rand(); char buffer[MAXBUF]; switch(token) @@ -6669,6 +6670,7 @@ void process_restricted_commands(char token,char* params,serverrec* source,serve WriteOpers("Server %s is starting netburst.",udp_host); // now broadcast this new servers address out to all servers that are linked to us, // except the newcomer. They'll all attempt to connect back to it. + authcookie = rand()*rand(); snprintf(buffer,MAXBUF,"~ %d",authcookie); NetSendToAll(buffer); break; -- cgit v1.2.3