Module: sip-router
Branch: master
Commit: 5783e4dd98313f8a617cc1a0562ddba94be05904
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=5783e4d…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Tue May 4 14:19:06 2010 +0200
mtree: fixed len check for dbtable attribute
---
modules/mtree/mtree.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/mtree/mtree.c b/modules/mtree/mtree.c
index 54f82da..51d355a 100644
--- a/modules/mtree/mtree.c
+++ b/modules/mtree/mtree.c
@@ -624,7 +624,7 @@ int mt_table_spec(char* val)
} else if(pit->name.len==4
&& strncasecmp(pit->name.s, "type", 4)==0) {
str2sint(&pit->body, &tmp.type);
- } else if(pit->name.len==8
+ } else if(pit->name.len==7
&& strncasecmp(pit->name.s, "dbtable", 7)==0) {
tmp.dbtable = pit->body;
}