aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorJaap Keuter <jaap.keuter@xs4all.nl>2006-02-21 11:48:40 +0000
committerJaap Keuter <jaap.keuter@xs4all.nl>2006-02-21 11:48:40 +0000
commit48f6c25460bb62ce53a00b1380c51caf3178a3e1 (patch)
tree64cb8c8e3e68489fe70aa7dde9a2c9f4f9ae2c46 /plugins
parent335a8e283110e6b4b784cd40763e988f4d54011b (diff)
Fix for bug 756. Handle CR as part of separator as well.
svn path=/trunk/; revision=17359
Diffstat (limited to 'plugins')
-rw-r--r--plugins/megaco/packet-megaco.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/megaco/packet-megaco.c b/plugins/megaco/packet-megaco.c
index 974f85e544..30cd020232 100644
--- a/plugins/megaco/packet-megaco.c
+++ b/plugins/megaco/packet-megaco.c
@@ -2793,7 +2793,7 @@ static gint tvb_skip_wsp(tvbuff_t* tvb, gint offset ){
for(counter = offset; counter < end &&
((tempchar = tvb_get_guint8(tvb,counter)) == ' ' ||
- tempchar == '\t'|| tempchar == '\n');counter++);
+ tempchar == '\t' || tempchar == '\n' || tempchar == '\r'); counter++);
return (counter);
}
static gint tvb_skip_wsp_return(tvbuff_t* tvb, gint offset){
@@ -2804,7 +2804,7 @@ static gint tvb_skip_wsp_return(tvbuff_t* tvb, gint offset){
for(counter = offset; counter > end &&
((tempchar = tvb_get_guint8(tvb,counter)) == ' ' ||
- tempchar == '\t'|| tempchar == '\n');counter--);
+ tempchar == '\t' || tempchar == '\n' || tempchar == '\r'); counter--);
counter++;
return (counter);
}