From: Ezra Peisach Date: Thu, 21 Jun 2001 21:52:36 +0000 (+0000) Subject: * ftpd.c: If NEED_SETENV defined, prototype for setenv. X-Git-Tag: krb5-1.3-alpha1~1320 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c3c053fae211468b3763a8b98e20de044f0d938e;p=krb5.git * 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. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13466 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/appl/gssftp/ftpd/ChangeLog b/src/appl/gssftp/ftpd/ChangeLog index 01b384f92..b17db49ee 100644 --- a/src/appl/gssftp/ftpd/ChangeLog +++ b/src/appl/gssftp/ftpd/ChangeLog @@ -1,6 +1,8 @@ 2001-06-21 Ezra Peisach * 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 diff --git a/src/appl/gssftp/ftpd/ftpd.c b/src/appl/gssftp/ftpd/ftpd.c index 77d5a7f17..865a7945e 100644 --- a/src/appl/gssftp/ftpd/ftpd.c +++ b/src/appl/gssftp/ftpd/ftpd.c @@ -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));