summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2004-04-16 16:19:41 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2004-04-16 16:19:41 +0000
commitac1f277f2b343ecbeeda235696ce04eb723c3ac7 (patch)
tree38a8f7b34166034ea5007c000bd9c1a28b6208a1
parent6fdefebb28a41942239491ac25b5cb8949d912d9 (diff)
Yet more 'bad cookie' fixes :/
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@626 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/inspircd.cpp4
1 files changed, 3 insertions, 1 deletions
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;