mirror of
https://github.com/samba-team/samba.git
synced 2025-07-30 19:42:05 +03:00
libnetapi: don't to try to free NULL struct.
Guenther
This commit is contained in:
@ -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) {
|
||||
|
Reference in New Issue
Block a user