I've decided to move the auth code around a bit more...
[samba.git] / source / smbd / process.c
index af081d5059a1683bdafa74f6cefd463f0b26b2e2..2b31a24ceda6a829799552b68107d63fbcbbaf4f 100644 (file)
@@ -1112,7 +1112,7 @@ static BOOL timeout_processing(int deadtime, int *select_timeout, time_t *last_t
 
   if (keepalive && (t - last_keepalive_sent_time)>keepalive) 
   {
-         extern auth_authsupplied_info *negprot_global_auth_info;
+         extern struct auth_context *negprot_global_auth_context;
          if (!send_keepalive(smbd_server_fd())) {
                  DEBUG( 2, ( "Keepalive failed - exiting.\n" ) );
                  return False;
@@ -1121,11 +1121,11 @@ static BOOL timeout_processing(int deadtime, int *select_timeout, time_t *last_t
          /* send a keepalive for a password server or the like.
             This is attached to the auth_info created in the
             negprot */
-         if (negprot_global_auth_info 
-             && negprot_global_auth_info->challenge_set_method 
-             && negprot_global_auth_info->challenge_set_method->send_keepalive) {
-                 negprot_global_auth_info->challenge_set_method->send_keepalive
-                         (&negprot_global_auth_info->challenge_set_method->private_data);
+         if (negprot_global_auth_context 
+             && negprot_global_auth_context->challenge_set_method 
+             && negprot_global_auth_context->challenge_set_method->send_keepalive) {
+                 negprot_global_auth_context->challenge_set_method->send_keepalive
+                         (&negprot_global_auth_context->challenge_set_method->private_data);
          }
 
          last_keepalive_sent_time = t;