tFix for the infinite loop encountered when connecting to a dopewars server which rejects the connection (caused by insufficient error checking). - vaccinewars - be a doctor and try to vaccinate the world
HTML git clone git://src.adamsgaard.dk/vaccinewars
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit 870334d59dab288ae44229b07ab434361245d49c
DIR parent dbbbb4f9a3c6ce5c73a819dd91c641a3bfa498d7
HTML Author: Ben Webb <ben@salilab.org>
Date: Mon, 6 Jan 2003 11:39:44 +0000
Fix for the infinite loop encountered when connecting to a dopewars server
which rejects the connection (caused by insufficient error checking).
Diffstat:
M src/curses_client/curses_client.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
DIR diff --git a/src/curses_client/curses_client.c b/src/curses_client/curses_client.c
t@@ -548,7 +548,8 @@ static gboolean DoConnect(Player *Play, GString *errstr)
doneOK = FALSE;
} else {
SetNetworkBufferUserPasswdFunc(netbuf, SocksAuthFunc, NULL);
- while (netbuf->status != NBS_CONNECTED) {
+ doneOK = TRUE;
+ while (netbuf->status != NBS_CONNECTED && doneOK) {
DisplayConnectStatus(netbuf, oldstatus, oldsocks);
oldstatus = netbuf->status;
oldsocks = netbuf->sockstat;