Module: sip-router
Branch: master
Commit: 4554192745fb4273ad082b65e7453d55fec3c48d
URL:    
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=4554192745fb4273ad082b65e7453d55fec3c48d

Author: Iñaki Baz Castillo <[email protected]>
Committer: Iñaki Baz Castillo <[email protected]>
Date:   Wed Sep 14 00:03:24 2011 +0200

[core] Bug fixed in Via parser when \r or \n after Via transport.

---

 parser/parse_via.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/parser/parse_via.c b/parser/parse_via.c
index 5a50673..5c54e09 100644
--- a/parser/parse_via.c
+++ b/parser/parse_via.c
@@ -1463,7 +1463,8 @@ parse_again:
                                                /* finished proto parsing */
                                                
vb->transport.len=tmp-vb->transport.s;
                                                vb->proto=PROTO_OTHER;
-                                               state=F_HOST; /* start looking 
for host*/
+                                               state=F_LF;
+                                               saved_state=F_HOST; /* start 
looking for host*/
                                                goto main_via;
                                        case FIN_SIP:
                                                vb->name.len=tmp-vb->name.s;
@@ -1539,7 +1540,8 @@ parse_again:
                                                /* finished proto parsing */
                                                
vb->transport.len=tmp-vb->transport.s;
                                                vb->proto=PROTO_OTHER;
-                                               state=F_HOST; /* start looking 
for host*/
+                                               state=F_CR;
+                                               saved_state=F_HOST;
                                                goto main_via;
                                        case FIN_SIP:
                                                vb->name.len=tmp-vb->name.s;


_______________________________________________
sr-dev mailing list
[email protected]
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to