From: Wilfried Göesgens Date: Sun, 9 Mar 2008 22:02:31 +0000 (+0000) Subject: * if we get a zero length line, skip the whole processing. X-Git-Tag: v7.86~2438 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=00d8578c186d64ca178f35785e64ce60683ffa2a * if we get a zero length line, skip the whole processing. --- diff --git a/webcit/who.c b/webcit/who.c index ea197868d..f13ba59d3 100644 --- a/webcit/who.c +++ b/webcit/who.c @@ -60,6 +60,8 @@ int GetWholistSection(HashList *List, time_t now) serv_getln(buf, sizeof buf); if (buf[0] == '1') { while (BufLen = serv_getln(buf, sizeof buf), strcmp(buf, "000")) { + if (BufLen <= 0) + continue; User = (UserStateStruct*) malloc(sizeof(UserStateStruct)); User->Session = extract_int(buf, 0);