* secure.c (secure_putbuf): Initialize automatic variable LENGTH to 0.
authorKen Raeburn <raeburn@mit.edu>
Thu, 2 Nov 2006 03:44:36 +0000 (03:44 +0000)
committerKen Raeburn <raeburn@mit.edu>
Thu, 2 Nov 2006 03:44:36 +0000 (03:44 +0000)
* 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
src/appl/gssftp/ftp/secure.c

index c16d4544b82ddc622ec241f95af872df8508ffd0..02fb4baebef6f89e792366a1f0c25c9d5950d290 100644 (file)
@@ -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()
index 0998a18e4235362d805e1b8a73541c1e67cb0420..b8b963774fbff3fd85320af7c3f66036d98e52f6 100644 (file)
@@ -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 */