From 29c89a8edd5814106040e3b947bfdf638c47ac8b Mon Sep 17 00:00:00 2001 From: Danilo Almeida Date: Tue, 8 Jun 1999 06:18:38 +0000 Subject: [PATCH] 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 --- src/lib/ChangeLog | 5 +++++ src/lib/win_glue.c | 4 ++++ 2 files changed, 9 insertions(+) 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; } -- 2.26.2