Module: kamailio
Branch: master
Commit: 5113c047d353724d1a6f5a204e5a895ff1dd519a
URL:
https://github.com/kamailio/kamailio/commit/5113c047d353724d1a6f5a204e5a895…
Author: Luis Azedo <luis(a)2600hz.com>
Committer: Luis Azedo <luis(a)2600hz.com>
Date: 2015-02-06T16:08:54Z
kazoo : fix memset size error & includes
kz_trans was calling memset with wrong size of structure
kx_amqp was including uuid.h from uuid directory
---
Modified: modules/kazoo/kz_amqp.c
Modified: modules/kazoo/kz_trans.c
---
Diff:
https://github.com/kamailio/kamailio/commit/5113c047d353724d1a6f5a204e5a895…
Patch:
https://github.com/kamailio/kamailio/commit/5113c047d353724d1a6f5a204e5a895…
---
diff --git a/modules/kazoo/kz_amqp.c b/modules/kazoo/kz_amqp.c
index 29028d4..4fba7fe 100644
--- a/modules/kazoo/kz_amqp.c
+++ b/modules/kazoo/kz_amqp.c
@@ -5,7 +5,7 @@
#include <amqp_framing.h>
#include <amqp_tcp_socket.h>
#include <json.h>
-#include <uuid/uuid.h>
+#include <uuid.h>
#include "../../mem/mem.h"
#include "../../timer_proc.h"
#include "../../sr_module.h"
diff --git a/modules/kazoo/kz_trans.c b/modules/kazoo/kz_trans.c
index eb2ea64..e041ab0 100644
--- a/modules/kazoo/kz_trans.c
+++ b/modules/kazoo/kz_trans.c
@@ -172,7 +172,7 @@ void kz_free_pv_value(pv_value_t *val ) {
pv_value_t* kz_alloc_pv_value() {
pv_value_t* v = (pv_value_t*) pkg_malloc(sizeof(pv_value_t));
if(v != NULL)
- memset(v, 0, sizeof(pv_value_t*));
+ memset(v, 0, sizeof(pv_value_t));
return v;
}