Module: sip-router
Branch: master
Commit: 94833f8b8b94398566991713730b66a792b57056
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=94833f8…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Sun May 19 23:09:52 2013 +0200
tm: initialize the uac structure to 0 for local generated requests
- safer for adding new fields to it not set via set_uac_req()
---
modules/tm/uac.h | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/modules/tm/uac.h b/modules/tm/uac.h
index 69376b4..9843d15 100644
--- a/modules/tm/uac.h
+++ b/modules/tm/uac.h
@@ -65,6 +65,7 @@ typedef struct uac_req {
#define set_uac_req(_req, \
_m, _h, _b, _dlg, _cb_flags, _cb, _cbp) \
do { \
+ memset((_req), 0, sizeof(uac_req_t)); \
(_req)->method = (_m); \
(_req)->headers = (_h); \
(_req)->body = (_b); \