Module: sip-router
Branch: master
Commit: db07a8e381990d835711e978a5bf711186495cdf
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=db07a8e…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Tue Apr 17 23:00:50 2012 +0200
pua_reginfo: propoer call-id buffer when constructing XML for reginfo
- patch by Stefan Sayer, FS#212
---
modules_k/pua_reginfo/usrloc_cb.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules_k/pua_reginfo/usrloc_cb.c b/modules_k/pua_reginfo/usrloc_cb.c
index 92cf427..2374a65 100644
--- a/modules_k/pua_reginfo/usrloc_cb.c
+++ b/modules_k/pua_reginfo/usrloc_cb.c
@@ -141,7 +141,7 @@ str* build_reginfo_full(urecord_t * record, str uri, ucontact_t* c,
int type) {
/* CallID Attribute */
memset(buf, 0, sizeof(buf));
buf_len = snprintf(buf, sizeof(buf), "%.*s", ptr->callid.len,
ptr->callid.s);
- xmlNewProp(contact_node, BAD_CAST "callid", BAD_CAST ptr->callid.s);
+ xmlNewProp(contact_node, BAD_CAST "callid", BAD_CAST buf);
/* CSeq Attribute */
memset(buf, 0, sizeof(buf));
buf_len = snprintf(buf, sizeof(buf), "%d", ptr->cseq);