Skip to content

Commit

Permalink
xmlrpc: fix handling the optional param spec on no more params
Browse files Browse the repository at this point in the history
(cherry picked from commit 9483efe)
  • Loading branch information
miconda committed Oct 19, 2017
1 parent dc9efda commit 7187692
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/modules/xmlrpc/xmlrpc.c
Expand Up @@ -1525,7 +1525,13 @@ static int rpc_scan(rpc_ctx_t* ctx, char* fmt, ...)
f=(autoconvert?GET_X_AUTOCONV:0) |
(lflf2crlf?GET_X_LFLF2CRLF:0);
while(*fmt) {
if (!ctx->act_param) goto error;
if (!ctx->act_param) {
if(*fmt=='*') {
break;
} else {
goto error;
}
}
value = ctx->act_param->xmlChildrenNode;

switch(*fmt) {
Expand Down

0 comments on commit 7187692

Please sign in to comment.