diff options
author | Ken Raeburn <raeburn@mit.edu> | 2006-11-02 03:44:36 +0000 |
---|---|---|
committer | Ken Raeburn <raeburn@mit.edu> | 2006-11-02 03:44:36 +0000 |
commit | ac85b901582c7fd9dcfc2090ff8423e787962411 (patch) | |
tree | 88617498eaff50627fe40192aa2c0fa7fa0af50b /src/appl | |
parent | 7bfe2a95aaa00777e550e5112c681459ec537787 (diff) | |
download | krb5-ac85b901582c7fd9dcfc2090ff8423e787962411.zip krb5-ac85b901582c7fd9dcfc2090ff8423e787962411.tar.gz krb5-ac85b901582c7fd9dcfc2090ff8423e787962411.tar.bz2 |
* 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
Diffstat (limited to 'src/appl')
-rw-r--r-- | src/appl/gssftp/ftp/ftp.c | 4 | ||||
-rw-r--r-- | 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 c16d454..02fb4ba 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 0998a18..b8b9637 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 */ |