Skip to content
Browse files

MDL-29148 MNet - improved handling of a verification function return …

…code
  • Loading branch information...
1 parent b094ce4 commit 0dd51bbdbd3a20836c8f1f4767555702a4ac7388 @mudrd8mz mudrd8mz committed with stronk7
Showing with 2 additions and 2 deletions.
  1. +2 −2 mnet/xmlrpc/client.php
View
4 mnet/xmlrpc/client.php
@@ -335,8 +335,8 @@ function send($mnet_peer) {
// ok, it's signed, but is it signed with the right certificate ?
// do this *after* we check for an out of date key
- if (!openssl_verify($this->xmlrpcresponse, base64_decode($sig_parser->signature),
- $mnet_peer->public_key)) {
+ $verified = openssl_verify($this->xmlrpcresponse, base64_decode($sig_parser->signature), $mnet_peer->public_key);
+ if ($verified != 1) {
$this->error[] = 'Invalid signature';
}

0 comments on commit 0dd51bb

Please sign in to comment.
Something went wrong with that request. Please try again.