diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2004-04-14 19:25:34 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2004-04-14 19:25:34 +0000 |
commit | 864a2d5fe486a07d382fec200793372f1c64bc82 (patch) | |
tree | 626186fcea9dce20cb772af3453f1ca099e7fe99 /src/inspircd.cpp | |
parent | 5232506d5eade7ab98ff39ee98577b04b257bbb2 (diff) |
Crash fixes when linking
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@581 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/inspircd.cpp')
-rw-r--r-- | src/inspircd.cpp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp index e11456b48..267832127 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -6743,7 +6743,9 @@ void handle_link_packet(char* udp_msg, char* udp_host, serverrec *serv) return; } } - serv->SendPacket("E :Access is denied (no matching link block)",udp_host); + char buffer[MAXBUF]; + sprintf(buffer,"E :Access is denied (no matching link block)"); + serv->SendPacket(buffer,udp_host); WriteOpers("CONNECT from %s denied, no matching link block",servername); return; } @@ -6795,7 +6797,9 @@ void handle_link_packet(char* udp_msg, char* udp_host, serverrec *serv) { strcpy(servers[j]->description,serverdesc); DoSync(serv,udp_host); - serv->SendPacket("X 0",udp_host); + char buffer[MAXBUF]; + sprintf(buffer,"X 0"); + serv->SendPacket(buffer,udp_host); return; } } @@ -6807,7 +6811,9 @@ void handle_link_packet(char* udp_msg, char* udp_host, serverrec *serv) log(DEBUG,"Server names '%s' and '%s' don't match",Link_ServerName,servername); } } - serv->SendPacket("E :Access is denied (no matching link block)",udp_host); + char buffer[MAXBUF]; + sprintf(buffer,"E :Access is denied (no matching link block)"); + serv->SendPacket(buffer,udp_host); WriteOpers("CONNECT from %s denied, no matching link block",servername); return; } |