Module: kamailio
Branch: 4.3
Commit: b9d441c1177bf2d05e1ca85919a08b6e97b3b302
URL:
https://github.com/kamailio/kamailio/commit/b9d441c1177bf2d05e1ca85919a08b6…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2015-12-17T09:38:13+01:00
presence: init variable to prevent invalid cleanup on error getting presence document
- reported by GH#441
(cherry picked from commit d24863d071417effe5df863736ef037ec8e0b414)
---
Modified: modules/presence/publish.c
---
Diff:
https://github.com/kamailio/kamailio/commit/b9d441c1177bf2d05e1ca85919a08b6…
Patch:
https://github.com/kamailio/kamailio/commit/b9d441c1177bf2d05e1ca85919a08b6…
---
diff --git a/modules/presence/publish.c b/modules/presence/publish.c
index 5a48f77..73a64c6 100644
--- a/modules/presence/publish.c
+++ b/modules/presence/publish.c
@@ -509,7 +509,7 @@ int handle_publish(struct sip_msg* msg, char* sender_uri, char* str2)
int update_hard_presentity(str *pres_uri, pres_ev_t *event, str *file_uri, str
*filename)
{
int ret = -1, new_t, pidf_result;
- str *pidf_doc;
+ str *pidf_doc = 0;
char *sphere = NULL;
presentity_t *pres = NULL;
struct sip_uri parsed_uri;