Browse code

dialog(k): use proper scan string for optional headers parameter in rpc commands

- credits to Kristofer Signer for report and troubleshooting

Daniel-Constantin Mierla authored on 09/11/2012 07:41:55
Showing 1 changed files
... ...
@@ -1587,7 +1587,7 @@ static void rpc_end_dlg_entry_id(rpc_t *rpc, void *c) {
1587 1587
 	dlg_cell_t * dlg = NULL;
1588 1588
 	str rpc_extra_hdrs = {NULL,0};
1589 1589
 
1590
-	if (rpc->scan(c, "ddS", &h_entry, &h_id, &rpc_extra_hdrs) < 2) return;
1590
+	if (rpc->scan(c, "dd*S", &h_entry, &h_id, &rpc_extra_hdrs) < 2) return;
1591 1591
 
1592 1592
 	dlg = dlg_lookup(h_entry, h_id);
1593 1593
 	if(dlg){
... ...
@@ -1624,7 +1624,7 @@ static void rpc_dlg_bridge(rpc_t *rpc, void *c) {
1624 1624
 	str to = {NULL,0};
1625 1625
 	str op = {NULL,0};
1626 1626
 
1627
-	if (rpc->scan(c, "SSS", &from, &to, &op) < 2) return;
1627
+	if (rpc->scan(c, "SS*S", &from, &to, &op) < 2) return;
1628 1628
 
1629 1629
 	dlg_bridge(&from, &to, &op);
1630 1630
 }