(0013641)
stskeeps (reporter)
2007-04-24 03:01
|
Patch broken (2007-04-20, 02:05):
***************
*** 2202,2212 ****
if (IsDead(cptr) || write_err)
{
- (void)exit_client(cptr, cptr, &me,
- ((sockerr =
- get_sockerr(cptr)) ? STRERROR(sockerr) :
- "Client exited"));
continue;
}
}
--- 2214,2230 ----
if (IsDead(cptr) || write_err)
{
+ if (!(sockerr = get_sockerr(cptr)))
+ {
+ ircsprintf(errmsg, "%s", "Remote host closed the connection");
+ exit_client(cptr, cptr, &me, errmsg);
continue;
+ } else {
+ ircsprintf(errmsg, "Read error: %s",
+ STRERROR(sockerr));
+ exit_client(cptr, cptr, &me, errmsg);
+ continue;
+ }
}
}
***************
*** 2253,2261 ****
report_error("Lost connection to %s:%s", cptr);
}
if (length != FLUSH_BUFFER)
- (void)exit_client(cptr, cptr, &me,
- ((sockerr = get_sockerr(cptr))
- ? STRERROR(sockerr) : "Client exited"));
}
return 0;
--- 2271,2285 ----
report_error("Lost connection to %s:%s", cptr);
}
if (length != FLUSH_BUFFER)
+ if (!(sockerr = get_sockerr(cptr)))
+ {
+ ircsprintf(errmsg, "%s", "Remote host closed the connection");
+ exit_client(cptr, cptr, &me, errmsg);
+ } else {
+ ircsprintf(errmsg, "Read error: %s",
+ STRERROR(sockerr));
+ exit_client(cptr, cptr, &me, errmsg);
+ }
}
return 0;
------------
Please cvs up -P -d -r devel and make the patch towards this (3.3-alpha0) |