Module: kamailio
Branch: master
Commit: 6b3ce6376258211d317620d4d96bd3d88788b6a3
URL:
https://github.com/kamailio/kamailio/commit/6b3ce6376258211d317620d4d96bd3d…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2016-12-12T18:32:34+01:00
xmlrpc: init delayed context for rpc_fault()
- may fix the GH #878, reported by Juha Heinanen
---
Modified: src/modules/xmlrpc/xmlrpc.c
---
Diff:
https://github.com/kamailio/kamailio/commit/6b3ce6376258211d317620d4d96bd3d…
Patch:
https://github.com/kamailio/kamailio/commit/6b3ce6376258211d317620d4d96bd3d…
---
diff --git a/src/modules/xmlrpc/xmlrpc.c b/src/modules/xmlrpc/xmlrpc.c
index 7914fb6..128f647 100644
--- a/src/modules/xmlrpc/xmlrpc.c
+++ b/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];
va_list ap;
+ fix_delayed_reply_ctx(ctx);
ctx->reply.code = code;
va_start(ap, fmt);
vsnprintf(buf, REASON_BUF_LEN, fmt, ap);