summaryrefslogtreecommitdiff
path: root/bouncer
diff options
context:
space:
mode:
authorTreeki <treeki@gmail.com>2014-02-12 13:27:41 +0100
committerTreeki <treeki@gmail.com>2014-02-12 13:27:41 +0100
commit89825b23cec159b8945e1ce630d6b8fd3eeec059 (patch)
treeb54a95b2a8327968abee537ff9f1384f4db0ba52 /bouncer
parent5ae205badc7fe6ba4287d8e657f7010ff5ff408c (diff)
downloadbounce4-89825b23cec159b8945e1ce630d6b8fd3eeec059.tar.gz
bounce4-89825b23cec159b8945e1ce630d6b8fd3eeec059.zip
fix NetCore::quitFlag being uninitialised (thanks, Valgrind/memcheck!)
Diffstat (limited to 'bouncer')
-rw-r--r--bouncer/netcore.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/bouncer/netcore.cpp b/bouncer/netcore.cpp
index 0dd929f..f8c484e 100644
--- a/bouncer/netcore.cpp
+++ b/bouncer/netcore.cpp
@@ -83,6 +83,8 @@ int NetCore::execute() {
// do stuff!
+ quitFlag = false;
+
while (!quitFlag) {
fd_set readSet, writeSet;
FD_ZERO(&readSet);