Module: sip-router
Branch: master
Commit: d5120187eb41e709c840b3cfbb0dc1803f61b036
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=d512018…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Fri Nov 9 08:41:55 2012 +0100
dialog(k): use proper scan string for optional headers parameter in rpc commands
- credits to Kristofer Signer for report and troubleshooting
---
modules_k/dialog/dialog.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules_k/dialog/dialog.c b/modules_k/dialog/dialog.c
index 4d7af53..a22576e 100644
--- a/modules_k/dialog/dialog.c
+++ b/modules_k/dialog/dialog.c
@@ -1587,7 +1587,7 @@ static void rpc_end_dlg_entry_id(rpc_t *rpc, void *c) {
dlg_cell_t * dlg = NULL;
str rpc_extra_hdrs = {NULL,0};
- if (rpc->scan(c, "ddS", &h_entry, &h_id, &rpc_extra_hdrs) <
2) return;
+ if (rpc->scan(c, "dd*S", &h_entry, &h_id, &rpc_extra_hdrs) <
2) return;
dlg = dlg_lookup(h_entry, h_id);
if(dlg){
@@ -1624,7 +1624,7 @@ static void rpc_dlg_bridge(rpc_t *rpc, void *c) {
str to = {NULL,0};
str op = {NULL,0};
- if (rpc->scan(c, "SSS", &from, &to, &op) < 2) return;
+ if (rpc->scan(c, "SS*S", &from, &to, &op) < 2) return;
dlg_bridge(&from, &to, &op);
}