* ftpd.c: If NEED_SETENV defined, prototype for setenv.
authorEzra Peisach <epeisach@mit.edu>
Thu, 21 Jun 2001 21:52:36 +0000 (21:52 +0000)
committerEzra Peisach <epeisach@mit.edu>
Thu, 21 Jun 2001 21:52:36 +0000 (21:52 +0000)
(auth_data): radix_encode expects a int * and not a size_t *. Use
temporary variable to pass data in and out.

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

src/appl/gssftp/ftpd/ChangeLog
src/appl/gssftp/ftpd/ftpd.c

index 01b384f92e51ba96ee40b829e9c827425c27f2a0..b17db49ee3f2783eec3d09fb13de07dd2b2eb3e4 100644 (file)
@@ -1,6 +1,8 @@
 2001-06-21  Ezra Peisach  <epeisach@mit.edu>
 
        * ftpd.c: If NEED_SETENV defined, prototype for setenv.
+       (auth_data): radix_encode expects a int * and not a size_t *. Use
+       temporary variable to pass data in and out.
 
 2001-06-20  Ezra Peisach  <epeisach@mit.edu>
 
index 77d5a7f1756c3c6480190a6a9b4de8c9a9110dbb..865a7945eda039c10826548b86a47cc23999d370 100644 (file)
@@ -2400,6 +2400,7 @@ char *data;
                gss_cred_id_t server_creds, deleg_creds;
                gss_name_t client;
                int ret_flags;
+               int rad_len;
                struct gss_channel_bindings_struct chan;
                gss_buffer_desc name_buf;
                gss_name_t server_name;
@@ -2526,8 +2527,11 @@ char *data;
                                                                &deleg_creds);
                                return(0);
                        }
+
+                       rad_len = out_tok.length;
                        kerror = radix_encode(out_tok.value, gbuf, 
-                                             &out_tok.length, 0);
+                                             &rad_len, 0);
+                       out_tok.length = rad_len;
                        if (kerror) {
                                secure_error("Couldn't encode ADAT reply (%s)",
                                             radix_error(kerror));