projects
/
sip-router
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
695adc6
)
verify the return value of append_branch()
author
Miklos Tirpak
<miklos@iptel.org>
Mon, 7 Apr 2008 13:31:24 +0000
(13:31 +0000)
committer
Miklos Tirpak
<miklos@iptel.org>
Mon, 7 Apr 2008 13:31:24 +0000
(13:31 +0000)
etc/ser-oob.cfg
patch
|
blob
|
history
diff --git
a/etc/ser-oob.cfg
b/etc/ser-oob.cfg
index
f56b082
..
89dfc8a
100644
(file)
--- a/
etc/ser-oob.cfg
+++ b/
etc/ser-oob.cfg
@@
-497,7
+497,10
@@
route[FORWARD]
{
# if this is called from the failure route we need to open a new branch
if (isflagset(FLAG_FAILUREROUTE)) {
- append_branch();
+ if (!append_branch()) {
+ t_reply("500", "Too many branches");
+ drop;
+ }
}
# if this is an initial INVITE (without a To-tag) we might try another