diff options
| author | Etienne Samson <samson.etienne@gmail.com> | 2018-07-06 22:24:16 +0200 |
|---|---|---|
| committer | Etienne Samson <samson.etienne@gmail.com> | 2018-07-06 22:24:16 +0200 |
| commit | 6ae6491e5f6033a23dfdb0fb010da74ef5413c0f (patch) | |
| tree | 2c7e5aa88b6c8807bffb85a34a2fbc90c559b338 /tests/diff | |
| parent | 68c7480a8ef77424c67bcf5f0b822926e030d758 (diff) | |
| download | libgit2-6ae6491e5f6033a23dfdb0fb010da74ef5413c0f.tar.gz | |
smart: don't dereference a NULL pkt pointer
By clarifying what detect_caps returns on empty/missing packet, we can
be sure there are actually refs to process. The old code could blindly
dereference `first`, which might have been NULL.
Reported by Coverity, CID 1393614
Diffstat (limited to 'tests/diff')
0 files changed, 0 insertions, 0 deletions
