1
0
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:
Günther Deschner 2008-04-13 17:33:27 +02:00
parent b2cf8010ae
commit eb33d30d80

View File

@ -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) {