From: Theodore Tso Date: Sat, 22 Apr 1995 04:54:47 +0000 (+0000) Subject: Only call krb5_init_context if the telnet context hasn't been X-Git-Tag: krb5-1.0-beta5~297 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=cb64f4d641fdf2b4813dd4d1c11805264a9466e7;p=krb5.git Only call krb5_init_context if the telnet context hasn't been initialized yet. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@5449 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/appl/telnet/libtelnet/ChangeLog b/src/appl/telnet/libtelnet/ChangeLog index abe3422fa..a9a555b61 100644 --- a/src/appl/telnet/libtelnet/ChangeLog +++ b/src/appl/telnet/libtelnet/ChangeLog @@ -1,3 +1,8 @@ +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 Changes for testsuite from Ian Taylor diff --git a/src/appl/telnet/libtelnet/kerberos5.c b/src/appl/telnet/libtelnet/kerberos5.c index 268bdb345..5f1685e65 100644 --- a/src/appl/telnet/libtelnet/kerberos5.c +++ b/src/appl/telnet/libtelnet/kerberos5.c @@ -154,7 +154,7 @@ Data(ap, type, d, c) return(net_write(str_data, p - str_data)); } -krb5_context telnet_context; +krb5_context telnet_context = 0; int kerberos5_init(ap, server) Authenticator *ap; @@ -167,7 +167,8 @@ kerberos5_init(ap, server) 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); }