mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 19:19:02 -04:00
Last cleanup. All trunk extras now builds again.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10532 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
parent
7e31ac35cb
commit
4409bb7e5a
@ -710,7 +710,6 @@ class ModuleMsSQL : public Module
|
||||
ClearAllConnections();
|
||||
|
||||
ServerInstance->SE->DelFd(listener);
|
||||
//listener->Close();
|
||||
ServerInstance->BufferedSocketCull();
|
||||
|
||||
if (QueueFD >= 0)
|
||||
|
@ -298,7 +298,7 @@ class SQLConn : public classbase
|
||||
/* Total length of the unescaped parameters */
|
||||
unsigned long paramlen;
|
||||
|
||||
/* Total length of query, used for binary-safety in mysql_real_query */
|
||||
/* Total length of query, used for binary-safety */
|
||||
unsigned long querylength = 0;
|
||||
|
||||
paramlen = 0;
|
||||
@ -310,7 +310,7 @@ class SQLConn : public classbase
|
||||
/* To avoid a lot of allocations, allocate enough memory for the biggest the escaped query could possibly be.
|
||||
* sizeofquery + (totalparamlength*2) + 1
|
||||
*
|
||||
* The +1 is for null-terminating the string for mysql_real_escape_string
|
||||
* The +1 is for null-terminating the string
|
||||
*/
|
||||
query = new char[req.query.q.length() + (paramlen*2) + 1];
|
||||
queryend = query;
|
||||
@ -522,7 +522,6 @@ class ModuleSQLite3 : public Module
|
||||
ClearAllConnections();
|
||||
|
||||
ServerInstance->SE->DelFd(listener);
|
||||
//listener->Close();
|
||||
ServerInstance->BufferedSocketCull();
|
||||
|
||||
if (QueueFD >= 0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user