From: Christopher H. <ch...@us...> - 2002-01-15 01:51:10
|
Update of /cvsroot/blob/blob/src/blob In directory usw-pr-cvs1:/tmp/cvs-serv28230/src/blob Modified Files: main.c Log Message: Don't continue with download if set_download_parameters fails. Index: main.c =================================================================== RCS file: /cvsroot/blob/blob/src/blob/main.c,v retrieving revision 1.23 retrieving revision 1.24 diff -u -d -r1.23 -r1.24 --- main.c 2002/01/07 14:48:25 1.23 +++ main.c 2002/01/15 01:51:07 1.24 @@ -256,6 +256,8 @@ retval = set_download_parameters(argv[1], &startAddress, &bufLen, &numRead, &digest); + if (retval < 0) + return -EINVAL; if (blob_status.terminalSpeed != blob_status.downloadSpeed) { SerialOutputString("Switching to "); @@ -335,6 +337,8 @@ retval = set_download_parameters(argv[1], &startAddress, &bufLen, &numRead, &digest); + if (retval < 0) + return -EINVAL; if (blob_status.terminalSpeed != blob_status.downloadSpeed) { SerialOutputString("Switching to "); |