From ac85b901582c7fd9dcfc2090ff8423e787962411 Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Thu, 2 Nov 2006 03:44:36 +0000 Subject: [PATCH] * secure.c (secure_putbuf): Initialize automatic variable LENGTH to 0. * ftp.c (gss_trials, n_gss_trials): Make static and const. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@18760 dc483132-0cff-0310-8789-dd5450dbe970 --- src/appl/gssftp/ftp/ftp.c | 4 ++-- src/appl/gssftp/ftp/secure.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/appl/gssftp/ftp/ftp.c b/src/appl/gssftp/ftp/ftp.c index c16d4544b..02fb4baeb 100644 --- a/src/appl/gssftp/ftp/ftp.c +++ b/src/appl/gssftp/ftp/ftp.c @@ -1958,14 +1958,14 @@ char realm[REALM_SZ + 1]; #endif /* KRB5_KRB4_COMPAT */ #ifdef GSSAPI -struct { +static const struct { gss_OID mech_type; char *service_name; } gss_trials[] = { { GSS_C_NO_OID, "ftp" }, { GSS_C_NO_OID, "host" }, }; -int n_gss_trials = sizeof(gss_trials)/sizeof(gss_trials[0]); +static const int n_gss_trials = sizeof(gss_trials)/sizeof(gss_trials[0]); #endif /* GSSAPI */ int do_auth() diff --git a/src/appl/gssftp/ftp/secure.c b/src/appl/gssftp/ftp/secure.c index 0998a18e4..b8b963774 100644 --- a/src/appl/gssftp/ftp/secure.c +++ b/src/appl/gssftp/ftp/secure.c @@ -283,7 +283,7 @@ unsigned int nbyte; { static char *outbuf; /* output ciphertext */ static unsigned int bufsize; /* size of outbuf */ - ftp_int32 length; + ftp_int32 length = 0; ftp_uint32 net_len; unsigned int fudge = smaxbuf - smaxqueue; /* Difference in length buffer lengths required */ -- 2.26.2