From: cajus Date: Mon, 11 Feb 2008 16:39:32 +0000 (+0000) Subject: REGISTERED_FLAG is now REGISTERED with correct integer X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e20a7e3220c94e64cafd8912b48ef1ae1c8eb113;p=gosa.git REGISTERED_FLAG is now REGISTERED with correct integer git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8840 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-si/gosa-si-client b/gosa-si/gosa-si-client index 456f70a9c..c1f2f1c47 100755 --- a/gosa-si/gosa-si-client +++ b/gosa-si/gosa-si-client @@ -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 =~ "
registered
") { # 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);