* import_sec_context.c (krb5_gss_import_sec_context): Do not
authorEzra Peisach <epeisach@mit.edu>
Sat, 24 Feb 1996 17:07:25 +0000 (17:07 +0000)
committerEzra Peisach <epeisach@mit.edu>
Sat, 24 Feb 1996 17:07:25 +0000 (17:07 +0000)
shadow parameter ctx.

* inq_context.c (krb5_gss_inquire_context): Do not shadow
parameter ctx.

The variable ctx was used both as an argument to the function (and put
into the variabel context) and declared as a local variable.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7521 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/gssapi/krb5/ChangeLog
src/lib/gssapi/krb5/import_sec_context.c
src/lib/gssapi/krb5/inq_context.c

index be1bf91294e6968f36906cf05943f0cf1d56f7fd..b26f6bc1b9ee1748fdacac23fcf73e39ff8e60a4 100644 (file)
@@ -1,5 +1,11 @@
 Sat Feb 24 11:45:05 1996  Ezra Peisach  <epeisach@kangaroo.mit.edu>
 
+       * import_sec_context.c (krb5_gss_import_sec_context): Do not
+               shadow parameter ctx.
+
+       * inq_context.c (krb5_gss_inquire_context): Do not shadow
+               parameter ctx.
+
        * rel_oid.c (krb5_gss_internal_release_oid): Change to match prototype.
 
        * process_context_token.c (krb5_gss_process_context_token): Change
index 8727fda7ed3e1c59e9cb613a753ff523024b4373..3f61f462472c2b5fc2588e3fea5bd2b35912d797 100644 (file)
 #include "gssapiP_krb5.h"
 
 OM_uint32
-krb5_gss_import_sec_context(ctx,
+krb5_gss_import_sec_context(ct,
                            minor_status, interprocess_token, context_handle)
-    void               *ctx;
+    void               *ct;
     OM_uint32          *minor_status;
     gss_buffer_t       interprocess_token;
     gss_ctx_id_t       *context_handle;
 {
-    krb5_context       context = ctx;
+    krb5_context       context = ct;
     krb5_error_code    kret;
     OM_uint32          retval;
     krb5_context       ser_ctx;
index bd1ef7ee2897a46d05cbd18af52da70713763ee7..8ccd8fbb93299f6c10e92d23756768b7611c6aa6 100644 (file)
 #include "gssapiP_krb5.h"
 
 OM_uint32
-krb5_gss_inquire_context(ctx, minor_status, context_handle, initiator_name, 
+krb5_gss_inquire_context(ct, minor_status, context_handle, initiator_name, 
                         acceptor_name, lifetime_rec, mech_type, ret_flags,
                         locally_initiated, open)
-     void *ctx;
+     void *ct;
      OM_uint32 *minor_status;
      gss_ctx_id_t context_handle;
      gss_name_t *initiator_name;
@@ -37,7 +37,7 @@ krb5_gss_inquire_context(ctx, minor_status, context_handle, initiator_name,
      int *locally_initiated;
      int *open;
 {
-   krb5_context context = ctx;
+   krb5_context context = ct;
    krb5_error_code code;
    krb5_gss_ctx_id_rec *ctx;
    krb5_principal init, accept;