X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Fmessages.c;h=8ca8a3126eb795451df86fec3f1e929c2e075dbc;hb=fd8ecfa1047b4ddd5cfaf71abe6f611f8c987d19;hp=29eeef64fe45e8ea911f12753f0c666fc6a88b0e;hpb=cfc28b67486c4c4ec087097952cefe3ca2745e9a;p=citadel.git diff --git a/webcit/messages.c b/webcit/messages.c index 29eeef64f..8ca8a3126 100644 --- a/webcit/messages.c +++ b/webcit/messages.c @@ -759,7 +759,7 @@ void readloop(long oper) void *vMsg; message_summary *Msg; char cmd[256] = ""; - int i; + int i, r; wcsession *WCC = WC; HashPos *at; const char *HashKey; @@ -790,11 +790,17 @@ void readloop(long oper) jsonMessageListHdr(); } - switch(ViewMsg->GetParamsGetServerCall( + if (ViewMsg->GetParamsGetServerCall != NULL) { + r = ViewMsg->GetParamsGetServerCall( &Stat, &ViewSpecific, oper, - cmd, sizeof(cmd))) + cmd, sizeof(cmd) + ); + } else { + r = 0; + } + switch(r) { case 400: case 404: