Module: kamailio
Branch: master
Commit: cc40fb7cbc7b646750fd7c056ea752bd69748ef3
URL:
https://github.com/kamailio/kamailio/commit/cc40fb7cbc7b646750fd7c056ea752b…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2017-01-06T15:38:48+01:00
ctl: one more revert in handlig rpc struct in response
---
Modified: src/modules/ctl/binrpc_run.c
---
Diff:
https://github.com/kamailio/kamailio/commit/cc40fb7cbc7b646750fd7c056ea752b…
Patch:
https://github.com/kamailio/kamailio/commit/cc40fb7cbc7b646750fd7c056ea752b…
---
diff --git a/src/modules/ctl/binrpc_run.c b/src/modules/ctl/binrpc_run.c
index 4adad72..7c497ce 100644
--- a/src/modules/ctl/binrpc_run.c
+++ b/src/modules/ctl/binrpc_run.c
@@ -1099,7 +1099,7 @@ static int rpc_struct_add(struct rpc_struct_l* s, char* fmt, ...)
}
clist_append(&s->substructs, rs, next, prev);
*(va_arg(ap, void**))=rs;
- break;
+ goto end;
case 'f':
avp.type=BINRPC_T_DOUBLE;
avp.u.fval=va_arg(ap, double);
@@ -1114,6 +1114,7 @@ static int rpc_struct_add(struct rpc_struct_l* s, char* fmt, ...)
goto error;
}
}
+end:
va_end(ap);
return 0;
error_mem: