diff options
author | Michał Górny <mgorny@gentoo.org> | 2015-05-24 22:33:55 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2015-05-27 20:36:53 +0200 |
commit | 2629fc874da258d76a63a99566a5ba457c9d5d30 (patch) | |
tree | 3239fc99a60f2b98b5a2a5e8d8761bb8d4a79c4e /tests/diff/binary.c | |
parent | f7142b5e4a9ce3f389f7851aac2fc98ce7bef764 (diff) | |
download | libgit2-2629fc874da258d76a63a99566a5ba457c9d5d30.tar.gz |
cred: Check for null values when getting key from memory
The public key field is optional and as such can take NULL. Account for
that and do not call strlen() on NULL values. Also assert() for non-NULL
values of username & private key.
Diffstat (limited to 'tests/diff/binary.c')
0 files changed, 0 insertions, 0 deletions