Module: sip-router
Branch: master
Commit: 6cc1f4101ce4a9db25865afc5ac19c3f6578889b
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=6cc1f41…
Author: Ovidiu Sas <osas(a)voipembedded.com>
Committer: Ovidiu Sas <osas(a)voipembedded.com>
Date: Wed May 14 16:07:24 2014 -0400
dispatcher: fix weight attr comparison
---
modules/dispatcher/dispatch.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/dispatcher/dispatch.c b/modules/dispatcher/dispatch.c
index 56d2f06..23b516a 100644
--- a/modules/dispatcher/dispatch.c
+++ b/modules/dispatcher/dispatch.c
@@ -227,7 +227,7 @@ int ds_set_attrs(ds_dest_t *dest, str *attrs)
&& strncasecmp(pit->name.s, "duid", 4)==0) {
dest->attrs.duid = pit->body;
} else if(pit->name.len==6
- && strncasecmp(pit->name.s, "weight", 4)==0) {
+ && strncasecmp(pit->name.s, "weight", 6)==0) {
str2sint(&pit->body, &dest->attrs.weight);
} else if(pit->name.len==7
&& strncasecmp(pit->name.s, "maxload", 7)==0) {