+Sat Apr 22 00:50:14 1995 Theodore Y. Ts'o (tytso@dcl)
+
+ * kerberos5.c (kerberos5_init): Only call krb5_init_context if
+ the telnet context hasn't been initialized yet.
+
Thu Apr 20 20:12:32 1995 Mark Eichin <eichin@cygnus.com>
Changes for testsuite from Ian Taylor <ian@cygnus.com>
return(net_write(str_data, p - str_data));
}
-krb5_context telnet_context;
+krb5_context telnet_context = 0;
int
kerberos5_init(ap, server)
Authenticator *ap;
memset(&session_key, 0, sizeof(session_key));
session_key.magic = KV5M_KEYBLOCK;
session_key.etype = ETYPE_UNKNOWN;
- krb5_init_context(&telnet_context);
+ if (telnet_context == 0)
+ krb5_init_context(&telnet_context);
krb5_init_ets(telnet_context);
return(1);
}