projects
/
platform
/
upstream
/
crda.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb2df38
)
Use the correct index when iterating over the array of public keys.
author
Davide Pesavento
<davidepesa@gmail.com>
Thu, 23 Oct 2008 23:06:35 +0000
(
01:06
+0200)
committer
Luis R. Rodriguez
<lrodriguez@atheros.com>
Thu, 23 Oct 2008 16:13:42 +0000
(09:13 -0700)
Signed-off-by: Davide Pesavento <davidepesa@gmail.com>
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
regdb.c
patch
|
blob
|
history
diff --git
a/regdb.c
b/regdb.c
index
f786ae3
..
e2e2185
100644
(file)
--- a/
regdb.c
+++ b/
regdb.c
@@
-102,9
+102,9
@@
int crda_verify_db_signature(__u8 *db, int dblen, int siglen)
for (i = 0; (i < sizeof(keys)/sizeof(keys[0])) && (!ok); i++) {
if (gcry_mpi_scan(&mpi_e, GCRYMPI_FMT_USG,
- keys[
0].e, keys[0
].len_e, NULL) ||
+ keys[
i].e, keys[i
].len_e, NULL) ||
gcry_mpi_scan(&mpi_n, GCRYMPI_FMT_USG,
- keys[
0].n, keys[0
].len_n, NULL)) {
+ keys[
i].n, keys[i
].len_n, NULL)) {
fprintf(stderr, "Failed to convert numbers.\n");
goto out;
}