From: Danilo Almeida Date: Tue, 8 Jun 1999 06:18:38 +0000 (+0000) Subject: Only do version checking once per use of the DLL X-Git-Tag: krb5-1.1-beta1~121 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=29c89a8edd5814106040e3b947bfdf638c47ac8b;p=krb5.git Only do version checking once per use of the DLL git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11494 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/lib/ChangeLog b/src/lib/ChangeLog index a5cdf0b9a..6559df4bb 100644 --- a/src/lib/ChangeLog +++ b/src/lib/ChangeLog @@ -1,3 +1,8 @@ +1999-06-08 Danilo Almeida + + * win_glue.c (krb5_vercheck): Only do version checking once per + use of the DLL. + Tue May 18 19:52:56 1999 Danilo Almeida * Makefile.in: Remove - from recursive Win32 make invocation. diff --git a/src/lib/win_glue.c b/src/lib/win_glue.c index 4793b5cab..ab3e1a1be 100644 --- a/src/lib/win_glue.c +++ b/src/lib/win_glue.c @@ -304,6 +304,9 @@ static krb5_error_code do_timebomb() */ krb5_error_code krb5_vercheck() { + static int verchecked = 0; + if (verchecked) + return 0; #ifdef TIMEBOMB krb5_error_code retval = do_timebomb(); if (retval) @@ -335,6 +338,7 @@ krb5_error_code krb5_vercheck() } #endif + verchecked = 1; return 0; }