summaryrefslogtreecommitdiffstats
path: root/cause.c
diff options
context:
space:
mode:
authorSuper User2007-07-31 07:34:18 +0200
committerSuper User2007-07-31 07:34:18 +0200
commit54d34cda7a6f0d9bd3ff22d529ce69ff2c004bd3 (patch)
treef58def401dbcb8dc1459770b77d766a7b5d76544 /cause.c
parentfixed routing: only parameters that are allowed may be present in the routing... (diff)
downloadlcr-54d34cda7a6f0d9bd3ff22d529ce69ff2c004bd3.tar.gz
lcr-54d34cda7a6f0d9bd3ff22d529ce69ff2c004bd3.tar.xz
lcr-54d34cda7a6f0d9bd3ff22d529ce69ff2c004bd3.zip
fixed crash when receiving notify messages
some other fixes start adding new mISDN api.
Diffstat (limited to 'cause.c')
-rw-r--r--cause.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/cause.c b/cause.c
index 42fdb29..825daaa 100644
--- a/cause.c
+++ b/cause.c
@@ -405,9 +405,14 @@ void collect_cause(int *multicause, int *multilocation, int newcause, int newloc
*multicause = newcause;
*multilocation = newlocation;
} else
- if (newcause==CAUSE_NOUSER && *multicause==CAUSE_NOUSER) /* cause 18, but no cause yet, use the location */
+ if (newcause==CAUSE_NOUSER && *multicause==CAUSE_NOUSER) /* cause 18, use the location */
{
*multilocation = newlocation;
+ } else
+ if (*multicause==0) /* no cause yet, use newcause (should be 18) */
+ {
+ *multicause = newcause;
+ *multilocation = newlocation;
}
}