Module: sip-router
Branch: master
Commit: c742ca80bcdfdd844a0dd03138b1c67c6995be57
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=c742ca8…
Author: Henning Westerholt <henning.westerholt(a)1und1.de>
Committer: Henning Westerholt <henning.westerholt(a)1und1.de>
Date: Wed Aug 19 16:51:44 2009 +0200
lib kmi: fix double allocation length calculation in mi_add_attr function
- patch from marius zbihlei, marius dot zbihlei at 1and1 dot ro, port from r5882
---
lib/kmi/attr.c | 8 --------
1 files changed, 0 insertions(+), 8 deletions(-)
diff --git a/lib/kmi/attr.c b/lib/kmi/attr.c
index 4a1b81b..1610cde 100644
--- a/lib/kmi/attr.c
+++ b/lib/kmi/attr.c
@@ -101,14 +101,6 @@ struct mi_attr *add_mi_attr(struct mi_node *node, int flags,
new->value.s = value;
}
}
- if(flags & MI_DUP_NAME){
- name_pos = size_mem;
- size_mem += name_len * sizeof(char);
- }
- if(flags & MI_DUP_VALUE){
- value_pos = size_mem;
- size_mem += value_len * sizeof(char);
- }
if(!(node->attributes)){
new->next = NULL;