]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:netapi: Remove unused ctx->krb5_cc_env
authorAndreas Schneider <asn@samba.org>
Thu, 18 Mar 2021 10:00:05 +0000 (11:00 +0100)
committerGünther Deschner <gd@samba.org>
Wed, 24 Mar 2021 00:55:32 +0000 (00:55 +0000)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
source3/lib/netapi/netapi.c
source3/lib/netapi/netapi_private.h

index 820dd8ac6e01a762ba1860fb1a6c81e85182429c..4c8a96e2e70aa101a071784a762f88d3d1390f49 100644 (file)
@@ -170,13 +170,6 @@ NET_API_STATUS libnetapi_free(struct libnetapi_ctx *ctx)
 
        libnetapi_shutdown_cm(ctx);
 
-       if (ctx->krb5_cc_env) {
-               char *env = getenv(KRB5_ENV_CCNAME);
-               if (env && (strequal(ctx->krb5_cc_env, env))) {
-                       unsetenv(KRB5_ENV_CCNAME);
-               }
-       }
-
        gfree_loadparm();
        gfree_charcnv();
        gfree_interfaces();
index 2403178fa3bd9b73d3846530452786cc607f9430..67cf8961e7bd7a72307edc7fd0620e9a4efd9f6f 100644 (file)
@@ -59,7 +59,6 @@ struct libnetapi_ctx {
        char *username;
        char *workgroup;
        char *password;
-       char *krb5_cc_env;
        int use_kerberos;
        int use_ccache;
        int disable_policy_handle_cache;