Code

REGISTERED_FLAG is now REGISTERED with correct integer
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 11 Feb 2008 16:39:32 +0000 (16:39 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 11 Feb 2008 16:39:32 +0000 (16:39 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8840 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-si/gosa-si-client

index 456f70a9c8d8b640535bb4db2f64e77847fdcc18..c1f2f1c47aedae5ffb70847e259aadd63deba748 100755 (executable)
@@ -55,7 +55,7 @@ our $client_address;
 our $server_key;
 
 # default variables
-our $REGISTERED_FLAG = 1;
+our $REGISTERED = 0;
 
 %cfg_defaults = (
 "general" =>
@@ -826,7 +826,7 @@ sub open_socket {
 sub register_at_gosa_si_server {
     my ($kernel) = $_[KERNEL];
 
-    if( $REGISTERED_FLAG == 1 ) {
+    if( $REGISTERED ) {
 
         # create new passwd and ciphering object for client-server communication
         $server_key = &create_passwd();
@@ -1017,7 +1017,7 @@ sub server_input {
         # preprocessing
         if( $answer =~ "<header>registered</header>") {
             # set registered flag to true to stop sending further registered msgs
-            $REGISTERED_FLAG = 0;
+            $REGISTERED = 1;
         } 
         else {
             &send_msg_to_target($answer, $server_address, $server_key);