diff options
Diffstat (limited to 'source4')
-rw-r--r-- | source4/auth/credentials/credentials.i | 4 | ||||
-rw-r--r-- | source4/auth/credentials/credentials_krb5.c | 1 |
2 files changed, 2 insertions, 3 deletions
diff --git a/source4/auth/credentials/credentials.i b/source4/auth/credentials/credentials.i index 565221c466..456ea75519 100644 --- a/source4/auth/credentials/credentials.i +++ b/source4/auth/credentials/credentials.i @@ -50,9 +50,7 @@ typedef struct cli_credentials { cli_credentials() { return cli_credentials_init(NULL); } - ~cli_credentials() { - talloc_free($self); - } + ~cli_credentials() { talloc_free($self); } /* username */ const char *get_username(void); bool set_username(const char *value, diff --git a/source4/auth/credentials/credentials_krb5.c b/source4/auth/credentials/credentials_krb5.c index fe71d98b43..cfdc2e3f5a 100644 --- a/source4/auth/credentials/credentials_krb5.c +++ b/source4/auth/credentials/credentials_krb5.c @@ -41,6 +41,7 @@ int cli_credentials_get_krb5_context(struct cli_credentials *cred, ret = smb_krb5_init_context(cred, cli_credentials_get_event_context(cred), lp_ctx, &cred->smb_krb5_context); if (ret) { + cred->smb_krb5_context = NULL; return ret; } *smb_krb5_context = cred->smb_krb5_context; |