diff options
Diffstat (limited to 'src/lib/crypto/krb')
-rw-r--r-- | src/lib/crypto/krb/key.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/crypto/krb/key.c b/src/lib/crypto/krb/key.c index 43d9ce6..15c6205 100644 --- a/src/lib/crypto/krb/key.c +++ b/src/lib/crypto/krb/key.c @@ -62,7 +62,8 @@ cleanup: void KRB5_CALLCONV krb5_k_reference_key(krb5_context context, krb5_key key) { - key->refcount++; + if (key) + key->refcount++; } /* Free the memory used by a krb5_key. */ |