mirror of
https://github.com/samba-team/samba.git
synced 2025-02-04 17:47:26 +03:00
libnetapi: don't to try to free NULL struct.
Guenther
This commit is contained in:
parent
b2cf8010ae
commit
eb33d30d80
@ -117,6 +117,10 @@ NET_API_STATUS libnetapi_getctx(struct libnetapi_ctx **ctx)
|
||||
|
||||
NET_API_STATUS libnetapi_free(struct libnetapi_ctx *ctx)
|
||||
{
|
||||
if (!ctx) {
|
||||
return NET_API_STATUS_SUCCESS;
|
||||
}
|
||||
|
||||
libnetapi_shutdown_cm(ctx);
|
||||
|
||||
if (ctx->krb5_cc_env) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user