Commit 670b1cb9 authored by Dietmar Maurer's avatar Dietmar Maurer

fix error message

Only test MD5 if status is active
parent 00344b00
...@@ -223,8 +223,10 @@ sub check_subscription { ...@@ -223,8 +223,10 @@ sub check_subscription {
$subinfo->{key} = $key; $subinfo->{key} = $key;
my $emd5sum = md5_hex($shared_key_data . $check_token); my $emd5sum = md5_hex($shared_key_data . $check_token);
if (!$subinfo->{md5hash} || ($subinfo->{md5hash} ne $emd5sum)) { if ($subinfo->{status} && $subinfo->{status} eq 'Active') {
die "MD5 Checksum Verification Failed"; if (!$subinfo->{md5hash} || ($subinfo->{md5hash} ne $emd5sum)) {
die "MD5 Checksum Verification Failed\n";
}
} }
check_fields($subinfo, $server_id, $req_sockets); check_fields($subinfo, $server_id, $req_sockets);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment