Ticket 8034: Fix Download firmware issu

This commit is contained in:
imen.bhiri 2015-10-30 14:35:51 +01:00
parent e1513b2ea3
commit 18a54c6f46
3 changed files with 4 additions and 4 deletions

View file

@ -24,7 +24,7 @@ icwmp_fault_output() {
icwmp_check_image()
{
. /etc/functions.sh; include /lib/upgrade; platform_check_image /tmp/firmware_upgrade_image
. /lib/functions.sh; include /lib/upgrade; platform_check_image /tmp/firmware_upgrade_image
return $?
}

View file

@ -211,7 +211,7 @@ handle_action() {
else
if [ "$__arg3" = "1" ];then
mv /tmp/icwmp_download /tmp/firmware_upgrade_image 2> /dev/null
icwmp_check_image
(icwmp_check_image)
if [ "$?" = "0" ];then
if [ $flashsize -gt 0 -a $filesize -gt $flashsize ];then
let fault_code=$fault_code+$FAULT_CPE_DOWNLOAD_FAIL_FILE_CORRUPTED

4
xml.c
View file

@ -1838,9 +1838,9 @@ int cwmp_launch_download(struct download *pdownload, struct transfer_complete **
}
free(fault_code);
}
else {
/*else {
error = FAULT_CPE_INTERNAL_ERROR;
}
}*/
p = calloc (1,sizeof(struct transfer_complete));
if(p == NULL)