Module: kamailio
Branch: master
Commit: 6a92bbcac7b111fa51114ef2d2876c4c4ebfa013
URL:
https://github.com/kamailio/kamailio/commit/6a92bbcac7b111fa51114ef2d2876c4…
Author: Charles Chance <charles.chance(a)sipcentric.com>
Committer: Charles Chance <charles.chance(a)sipcentric.com>
Date: 2017-05-27T15:23:13+01:00
dmq_usrloc: properly initialize usrloc_dmq_recv
---
Modified: src/modules/dmq_usrloc/usrloc_sync.c
---
Diff:
https://github.com/kamailio/kamailio/commit/6a92bbcac7b111fa51114ef2d2876c4…
Patch:
https://github.com/kamailio/kamailio/commit/6a92bbcac7b111fa51114ef2d2876c4…
---
diff --git a/src/modules/dmq_usrloc/usrloc_sync.c b/src/modules/dmq_usrloc/usrloc_sync.c
index 1b08329158..96d879e74f 100644
--- a/src/modules/dmq_usrloc/usrloc_sync.c
+++ b/src/modules/dmq_usrloc/usrloc_sync.c
@@ -428,6 +428,7 @@ static int init_usrloc_dmq_recv() {
LM_ERR("no more pkg memory\n");
return -1;
}
+ *usrloc_dmq_recv = 0;
}
return 0;
}