From 645ccd5b94b2185be5c29cec320ffe8c4846df5e Mon Sep 17 00:00:00 2001 From: janw Date: Mon, 11 Feb 2008 08:05:10 +0000 Subject: [PATCH] Added check git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8800 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-si/gosa-si-server | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gosa-si/gosa-si-server b/gosa-si/gosa-si-server index 8482e8d72..b27492194 100755 --- a/gosa-si/gosa-si-server +++ b/gosa-si/gosa-si-server @@ -552,6 +552,9 @@ sub input_from_unknown_host { sub create_ciphering { my ($passwd) = @_; + if((!defined($passwd)) || length($passwd)==0) { + $passwd = ""; + } $passwd = substr(md5_hex("$passwd") x 32, 0, 32); my $iv = substr(md5_hex('GONICUS GmbH'),0, 16); my $my_cipher = Crypt::Rijndael->new($passwd , Crypt::Rijndael::MODE_CBC()); -- 2.30.2