diff options
| author | 2008-10-29 19:02:29 +0000 | |
|---|---|---|
| committer | 2008-10-29 19:02:29 +0000 | |
| commit | 1305e286aa8a506d232d3dfe18c7f3de47797e2f (patch) | |
| tree | 29c6e98f81b4d8ab47f3090e422124241a721229 /src/configreader.cpp | |
| parent | Fix a low risk race condition which could result in crashes, spotted by Szyme... (diff) | |
Fix: Port was never read in for connect tags, patch from Szymek - thanks!
git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@10750 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/configreader.cpp')
| -rw-r--r-- | src/configreader.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/configreader.cpp b/src/configreader.cpp index 1973ca5e8..5f4f4d4b6 100644 --- a/src/configreader.cpp +++ b/src/configreader.cpp @@ -417,10 +417,11 @@ bool DoConnect(ServerConfig* conf, const char* tag, char** entries, ValueList &v int recvq = values[8].GetInteger(); int localmax = values[9].GetInteger(); int globalmax = values[10].GetInteger(); + int port = values[11].GetInteger(); if (*allow) { - ConnectClass c(timeout, flood, allow, pingfreq, password, threshold, sendq, recvq, localmax, globalmax); + ConnectClass c(timeout, flood, allow, pingfreq, password, threshold, sendq, recvq, localmax, globalmax, port); conf->Classes.push_back(c); } else |
