KerberosAgent fails to handle multiple clients because it attempts to message freed...
authorJustin Anderson <jander@mit.edu>
Tue, 7 Oct 2008 21:55:01 +0000 (21:55 +0000)
committerJustin Anderson <jander@mit.edu>
Tue, 7 Oct 2008 21:55:01 +0000 (21:55 +0000)
ticket: new
status: open

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@20839 dc483132-0cff-0310-8789-dd5450dbe970

src/kim/agent/mac/KerberosAgentController.m

index b392dd40a241aa695ba716ddd023f6934b9330d2..53b4bbd9ebb2643bc698794b488da43161aa348f 100644 (file)
     }
     
     [autoQuitTimer invalidate];
+    autoQuitTimer = nil;
     
     [KerberosAgentListener didAddClient:info error:err];
     [info release];
         if ([self.clients count] == 0) {
             // the client removes itself after select identity,
             // but might come back shortly afterward in need of an auth prompt
+            [autoQuitTimer invalidate];
             autoQuitTimer = [NSTimer scheduledTimerWithTimeInterval:SECONDS_BEFORE_AUTO_QUIT_ON_NO_CLIENTS
                                                              target:self
                                                            selector:@selector(quitIfIdle:)