Code Review
/
src
/
app-framework-main.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
f3d64b7
)
bug fix in calling 'd2i_X509'
author
José Bollo
<jose.bollo@iot.bzh>
Thu, 10 Dec 2015 15:42:35 +0000
(16:42 +0100)
committer
José Bollo
<jose.bollo@iot.bzh>
Thu, 10 Dec 2015 15:42:58 +0000
(16:42 +0100)
Change-Id: I606ac386266cdb540203eee4568591d2c3b313ef
src/wgtpkg-certs.c
patch
|
blob
|
history
diff --git
a/src/wgtpkg-certs.c
b/src/wgtpkg-certs.c
index
1d8b976
..
b4b45fd
100644
(file)
--- a/
src/wgtpkg-certs.c
+++ b/
src/wgtpkg-certs.c
@@
-45,7
+45,7
@@
static int add_certificate_bin(const char *bin, int len)
const char *b, *e;
b = bin;
e = bin + len;
- while (
len
) {
+ while (
b < e
) {
X509 *x = d2i_X509(NULL, (const unsigned char **)&b, e-b);
if (x == NULL) {
syslog(LOG_ERR, "d2i_X509 failed");