Browse Source

Fix critical bug of konfd from revision 138.

git-svn-id: https://klish.googlecode.com/svn/trunk@144 0eaa4687-2ee9-07dd-09d9-bcdd2d2dd5fb
Serj Kalichev 14 years ago
parent
commit
5e06ff8991
1 changed files with 1 additions and 1 deletions
  1. 1 1
      konf/tree/tree.c

+ 1 - 1
konf/tree/tree.c

@@ -24,7 +24,7 @@ int konf_tree_bt_compare(const void *clientnode, const void *clientkey)
 	const konf_tree_t *this = clientnode;
 	unsigned short *pri = (unsigned short *)clientkey;
 	unsigned short *seq = (unsigned short *)clientkey + 1;
-	char *line = ((char *)clientkey + sizeof(unsigned short));
+	char *line = ((char *)clientkey + (2 * sizeof(unsigned short)));
 
 	/* Priority check */
 	if (this->priority != *pri)