s3-libsmb: Don't duplicate kerberos service tickets.
authorAndreas Schneider <asn@samba.org>
Mon, 21 Nov 2011 17:19:43 +0000 (18:19 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Thu, 15 Dec 2011 18:30:42 +0000 (19:30 +0100)
This fixes bug #8628.

Each time we do a client connection. Each time we call to function to
get the service ticket from the cache we duplicate it. So with each
connection we end up with one or three duplicated tickets.

Autobuild-User: Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date: Thu Dec 15 19:30:42 CET 2011 on sn-devel-104

source3/libsmb/clikrb5.c

index c083af20a89da635443c0d5ef24d76f5de639bda..6a11def19c02c254cd5d1347dfbf95a6137ea309 100644 (file)
@@ -1817,11 +1817,6 @@ krb5_error_code smb_krb5_get_credentials(krb5_context context,
                goto done;
        }
 
-       ret = krb5_cc_store_cred(context, ccache, creds);
-       if (ret) {
-               goto done;
-       }
-
        if (out_creds) {
                *out_creds = creds;
        }