diff options
author | Martin Pitt <martin.pitt@ubuntu.com> | 2016-04-11 11:19:27 +0200 |
---|---|---|
committer | Martin Pitt <martin.pitt@ubuntu.com> | 2016-04-11 11:19:27 +0200 |
commit | 14b662590144571985897855f9973f16e386e0ce (patch) | |
tree | 1bd53b773f592dc583aff4635537a10a6f89fcaa /src/journal | |
parent | cbe22206143a04f573e5cfbc8c839ddf2fd8c5dc (diff) | |
parent | 7236ce6e9e379948217c31f38b48de6448521162 (diff) |
Merge pull request #2996 from keszybz/coverity-fixes
Coverity fixes
Diffstat (limited to 'src/journal')
-rw-r--r-- | src/journal/fsprg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/journal/fsprg.c b/src/journal/fsprg.c index 8956eb1d58..612b10f3a9 100644 --- a/src/journal/fsprg.c +++ b/src/journal/fsprg.c @@ -58,7 +58,7 @@ static gcry_mpi_t mpi_import(const void *buf, size_t buflen) { gcry_mpi_t h; unsigned len; - gcry_mpi_scan(&h, GCRYMPI_FMT_USG, buf, buflen, NULL); + assert_se(gcry_mpi_scan(&h, GCRYMPI_FMT_USG, buf, buflen, NULL) == 0); len = (gcry_mpi_get_nbits(h) + 7) / 8; assert(len <= buflen); assert(gcry_mpi_cmp_ui(h, 0) >= 0); |