bug fix suggested by Damien to allow the recompute of the SPA digest to properly happen when calling spa_digest() with a true value

git-svn-id: file:///home/mbr/svn/fwknop/trunk@109 510a4753-2344-4c79-9c09-4d669213fbeb
This commit is contained in:
Michael Rash
2009-06-29 00:52:12 +00:00
parent 5ba9f1ecf9
commit e0e08f0cf2
+2 -2
View File
@@ -265,13 +265,13 @@ sub spa_client_timeout {
sub spa_digest {
my $self = shift;
my $val = shift;
my $recompute = shift || 0;
my $val = '';
return FKO::_set_spa_digest($self->{_ctx})
if($recompute);
$val = '';
$self->{_err} = FKO::_get_spa_digest($self->{_ctx}, $val);
return($self->_check_return_val($val));