Module: sip-router
Branch: master
Commit: e75c2636cdab55911493a636af743918071518bc
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=e75c263…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Fri Jan 20 11:19:05 2012 +0100
msrp: fixed length in comparison of var names
- reported by A. Heggestad
---
modules/msrp/msrp_vars.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/msrp/msrp_vars.c b/modules/msrp/msrp_vars.c
index 60225fa..93e57e7 100644
--- a/modules/msrp/msrp_vars.c
+++ b/modules/msrp/msrp_vars.c
@@ -96,9 +96,9 @@ int pv_parse_msrp_name(pv_spec_t *sp, str *in)
case 8:
if(strncmp(in->s, "firsthop", 8)==0)
sp->pvp.pvn.u.isname.name.n = 16;
- else if(strncmp(in->s, "prevhops", 7)==0)
+ else if(strncmp(in->s, "prevhops", 8)==0)
sp->pvp.pvn.u.isname.name.n = 17;
- else if(strncmp(in->s, "nexthops", 7)==0)
+ else if(strncmp(in->s, "nexthops", 8)==0)
sp->pvp.pvn.u.isname.name.n = 18;
else goto error;
break;