浏览代码

xmlrpc: init delayed context for rpc_fault()

- may fix the GH #878, reported by Juha Heinanen
Daniel-Constantin Mierla 8 年之前
父节点
当前提交
6b3ce63762
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/modules/xmlrpc/xmlrpc.c

+ 1 - 0
src/modules/xmlrpc/xmlrpc.c

@@ -907,6 +907,7 @@ static void rpc_fault(rpc_ctx_t* ctx, int code, char* fmt, ...)
 	static char buf[REASON_BUF_LEN];
 	static char buf[REASON_BUF_LEN];
 	va_list ap;
 	va_list ap;
 
 
+	fix_delayed_reply_ctx(ctx);
 	ctx->reply.code = code;
 	ctx->reply.code = code;
 	va_start(ap, fmt);
 	va_start(ap, fmt);
 	vsnprintf(buf, REASON_BUF_LEN, fmt, ap);
 	vsnprintf(buf, REASON_BUF_LEN, fmt, ap);