Skip to content
This repository has been archived by the owner on Apr 23, 2023. It is now read-only.

Commit

Permalink
Merge 5294568 into 7c2d5ca
Browse files Browse the repository at this point in the history
  • Loading branch information
oRastor committed Oct 21, 2016
2 parents 7c2d5ca + 5294568 commit 782e61d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ASN1/Universal/OctetString.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public function getBinaryContent()
public static function fromBinary(&$binaryData, &$offsetIndex = 0)
{
self::parseIdentifier($binaryData[$offsetIndex], Identifier::OCTETSTRING, $offsetIndex++);
$contentLength = self::parseContentLength($binaryData, $offsetIndex, 1);
$contentLength = self::parseContentLength($binaryData, $offsetIndex);

$value = substr($binaryData, $offsetIndex, $contentLength);
$offsetIndex += $contentLength;
Expand Down

0 comments on commit 782e61d

Please sign in to comment.