…atch.
void bm_rpc_enable_global(rpc_t* rpc, void* ctx)
{
long int v1;
if(rpc->scan(ctx, "d", (int*)(&v1))<1) {
rpc->scan does not fill all the bytes of v1 if long int and int sizes differ,
then checks like this usually fail:
if ((v1 < -1) || (v1 > 1)) {
rpc->fault(ctx, 500, "Invalid Parameter Value");
return;
}
https://github.com/kamailio/kamailio/pull/1146
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.