Delete SAML relaystate data after it is read (Lemonldap-524)

This commit is contained in:
François-Xavier Deltombe 2012-09-06 10:25:41 +00:00
parent 8908cbbb4e
commit 495401756c

View File

@ -1212,7 +1212,13 @@ sub extractRelayState {
$self->{$_} = $samlSessionInfo->{$_};
}
untie %$samlSessionInfo;
# delete relaystate session
eval { tied(%$samlSessionInfo)->delete(); };
if ($@) {
$self->lmLog( "Unable to delete relaystate $relaystate", 'error' );
} else {
$self->lmLog( "Relaystate $relaystate was deleted", 'debug' );
}
return 1;
}