nat: Use a ptr that was allocated by talloc
The endp is part of an array allocated by talloc and simple array members do not qualify as a context start address.
This commit is contained in:
parent
8d20065c4b
commit
b3e0a032d0
|
@ -148,7 +148,7 @@ int bsc_mgcp_policy_cb(struct mgcp_config *cfg, int endpoint, int state, const c
|
||||||
talloc_free(bsc_endp->transaction_id);
|
talloc_free(bsc_endp->transaction_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
bsc_endp->transaction_id = talloc_strdup(bsc_endp, transaction_id);
|
bsc_endp->transaction_id = talloc_strdup(nat, transaction_id);
|
||||||
bsc_endp->bsc = bsc_con;
|
bsc_endp->bsc = bsc_con;
|
||||||
|
|
||||||
/* we need to update some bits */
|
/* we need to update some bits */
|
||||||
|
|
Loading…
Reference in New Issue