mirror of
https://dev.iopsys.eu/bbf/icwmp.git
synced 2025-12-10 07:44:41 +01:00
Ticket 8034: Fix Download firmware issu
This commit is contained in:
parent
e1513b2ea3
commit
18a54c6f46
3 changed files with 4 additions and 4 deletions
|
|
@ -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 $?
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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
4
xml.c
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue