summaryrefslogtreecommitdiff
path: root/include/git2
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2015-05-24 22:33:55 +0200
committerMichał Górny <mgorny@gentoo.org>2015-05-27 20:36:53 +0200
commit2629fc874da258d76a63a99566a5ba457c9d5d30 (patch)
tree3239fc99a60f2b98b5a2a5e8d8761bb8d4a79c4e /include/git2
parentf7142b5e4a9ce3f389f7851aac2fc98ce7bef764 (diff)
downloadlibgit2-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 'include/git2')
0 files changed, 0 insertions, 0 deletions