lib/krb5: krb5_store_string*() input must be non-NULL
commit468a06e61270d107f11d57cd74b2d8a139141e87
authorJeffrey Altman <jaltman@secure-endpoints.com>
Tue, 25 Jan 2022 17:42:09 +0000 (25 12:42 -0500)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Tue, 25 Jan 2022 17:42:09 +0000 (25 12:42 -0500)
tree9f8a8a29f06c2a6bb08590a283d0ea4c51c4fde8
parenta56382ce4dcae1eb5c1a26e6797741ac1cd164df
lib/krb5: krb5_store_string*() input must be non-NULL

krb5_store_string, krb5_store_stringz, krb5_store_stringnl

If the input string is NULL, fail the call with EINVAL.
Do not pass the NULL pointer to strlen().

Change-Id: Id87d72e263dde798f300353ec4c1656b310d17a4
lib/krb5/store.c