projects
/
citadel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
if StrBuf_ServGetln() is called in a loop, its return value has to be checked for...
[citadel.git]
/
webcit
/
inetconf.c
diff --git
a/webcit/inetconf.c
b/webcit/inetconf.c
index ab284758766ce0be1a5a244ac64447209347856b..a370634bcdd6174e61cef5df2dd35989dd6c5f9d 100644
(file)
--- a/
webcit/inetconf.c
+++ b/
webcit/inetconf.c
@@
-62,7
+62,10
@@
void load_inetconf(void)
if (GetServerStatus(Buf, NULL) == 1) {
CfgToken = NewStrBuf();
while ((len = StrBuf_ServGetln(Buf),
if (GetServerStatus(Buf, NULL) == 1) {
CfgToken = NewStrBuf();
while ((len = StrBuf_ServGetln(Buf),
- strcmp(ChrPtr(Buf), "000"))) {
+ ((len >= 0) &&
+ ((len != 3) ||
+ strcmp(ChrPtr(Buf), "000")))))
+ {
Value = NewStrBuf();
StrBufExtract_token(CfgToken, Buf, 1, '|');
Value = NewStrBuf();
StrBufExtract_token(CfgToken, Buf, 1, '|');