Only do version checking once per use of the DLL
authorDanilo Almeida <dalmeida@mit.edu>
Tue, 8 Jun 1999 06:18:38 +0000 (06:18 +0000)
committerDanilo Almeida <dalmeida@mit.edu>
Tue, 8 Jun 1999 06:18:38 +0000 (06:18 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11494 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/ChangeLog
src/lib/win_glue.c

index a5cdf0b9a1dbafa534361beed76e4bc5ae5ba960..6559df4bb0aa4e7bdd47f921657145c2ac0287c0 100644 (file)
@@ -1,3 +1,8 @@
+1999-06-08  Danilo Almeida  <dalmeida@mit.edu>
+
+       * win_glue.c (krb5_vercheck): Only do version checking once per
+               use of the DLL.
+
 Tue May 18 19:52:56 1999  Danilo Almeida  <dalmeida@mit.edu>
 
        * Makefile.in: Remove - from recursive Win32 make invocation.
index 4793b5caba8ea88e0b1ae5d04580401f9f84e0bd..ab3e1a1be10b5a4460256b5f89ef822b0709a04a 100644 (file)
@@ -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;
 }