diff options
author | Doug Zongker <dougz@google.com> | 2014-08-15 14:31:52 -0700 |
---|---|---|
committer | Doug Zongker <dougz@google.com> | 2014-08-19 16:53:39 -0700 |
commit | bc7ffeda98a861e346c30c771d3258030f7fcf21 (patch) | |
tree | a435cfd2bd1b457bb2e45304b8e75cd2e1305831 /applypatch/bspatch.c | |
parent | 2efc9d994ce59f9ebfc2290c2adc5d760e8939c2 (diff) | |
download | bootable_recovery-bc7ffeda98a861e346c30c771d3258030f7fcf21.zip bootable_recovery-bc7ffeda98a861e346c30c771d3258030f7fcf21.tar.gz bootable_recovery-bc7ffeda98a861e346c30c771d3258030f7fcf21.tar.bz2 |
installer for new block OTA system
(Cherry-pick back from master.)
Bug: 16984795
Change-Id: Ifa3d8345c5e2a0be86fb28faa080ca82592a96b4
Diffstat (limited to 'applypatch/bspatch.c')
-rw-r--r-- | applypatch/bspatch.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/applypatch/bspatch.c b/applypatch/bspatch.c index 1dc7ab1..b34ec2a 100644 --- a/applypatch/bspatch.c +++ b/applypatch/bspatch.c @@ -112,9 +112,7 @@ int ApplyBSDiffPatch(const unsigned char* old_data, ssize_t old_size, printf("short write of output: %d (%s)\n", errno, strerror(errno)); return 1; } - if (ctx) { - SHA_update(ctx, new_data, new_size); - } + if (ctx) SHA_update(ctx, new_data, new_size); free(new_data); return 0; |