- Fixed a bug with role destruction: the intruder goal term was not
duplicated, but destroyed nevertheless.
This commit is contained in:
parent
0862ce20da
commit
032d322952
@ -160,10 +160,7 @@ iterate_role_sends (int (*func) ())
|
|||||||
{
|
{
|
||||||
if (rd->type == SEND)
|
if (rd->type == SEND)
|
||||||
{
|
{
|
||||||
int flag;
|
if (!func (p, r, rd, index))
|
||||||
|
|
||||||
flag = func (p, r, rd, index);
|
|
||||||
if (!flag)
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
index++;
|
index++;
|
||||||
@ -193,7 +190,7 @@ add_intruder_goal (Goal goal)
|
|||||||
goal.rd->bind_index = 0;
|
goal.rd->bind_index = 0;
|
||||||
rd = sys->runs[run].start;
|
rd = sys->runs[run].start;
|
||||||
termDelete (rd->message);
|
termDelete (rd->message);
|
||||||
rd->message = goal.rd->message;
|
rd->message = termDuplicate (goal.rd->message);
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
explanation = "Adding intruder goal for run";
|
explanation = "Adding intruder goal for run";
|
||||||
|
Loading…
Reference in New Issue
Block a user