Skip to content

Commit

Permalink
fixup: No NULLs in new code
Browse files Browse the repository at this point in the history
  • Loading branch information
rousskov authored Jan 15, 2020
1 parent 462af12 commit e41ba6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/acl/external/kerberos_ldap_group/support_krb5.cc
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,7 @@ krb5_create_cache(char *domain, char *service_principal_name)
* Overwrite limitation of enctypes
*/
creds->keyblock.enctype = 0;
if (creds->keyblock.contents != NULL)
if (creds->keyblock.contents)
krb5_free_keyblock_contents(kparam.context, &creds->keyblock);
code = krb5_get_credentials(kparam.context, 0, kparam.cc[ccindex], creds, &tgt_creds);
if (code) {
Expand Down

0 comments on commit e41ba6f

Please sign in to comment.