From ada5c5bbcb97015a7b664ec6ce51adaf4bc301d2 Mon Sep 17 00:00:00 2001 From: Omar Kallel Date: Thu, 1 Mar 2018 11:45:58 +0100 Subject: [PATCH] Ticket refs #13818: Not able to Upgrade/downgrade RG using TR069 . Required/Steps for Upgrade procedure --- xml.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xml.c b/xml.c index 9b9a828..eeb0605 100644 --- a/xml.c +++ b/xml.c @@ -949,7 +949,7 @@ int cwmp_rpc_acs_prepare_transfer_complete(struct cwmp *cwmp, struct session *se n = mxmlNewElement(n, "CommandKey"); if (!n) goto error; - n = mxmlNewText(n, 0, p->command_key); + n = mxmlNewText(n, 0, p->command_key?p->command_key:""); if (!n) goto error; n = n->parent->parent; @@ -2304,7 +2304,7 @@ int cwmp_launch_download(struct download *pdownload, struct transfer_complete ** return error; } - p->command_key = strdup(pdownload->command_key); + p->command_key = pdownload->command_key?strdup(pdownload->command_key):strdup(""); p->start_time = strdup(download_startTime); p->complete_time = strdup(mix_get_time()); if(error != FAULT_CPE_NO_FAULT)