[Pkg-javascript-commits] [node-asn1.js] 66/202: der: fix error reporting in encoder
Bastien Roucariès
rouca at moszumanska.debian.org
Thu Apr 20 19:18:54 UTC 2017
This is an automated email from the git hooks/post-receive script.
rouca pushed a commit to branch master
in repository node-asn1.js.
commit 376d399cf58b1a43f36e8eeac3de73e4712ee4bc
Author: Fedor Indutny <fedor at indutny.com>
Date: Fri Nov 7 20:04:43 2014 +0300
der: fix error reporting in encoder
---
lib/asn1/encoders/der.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/asn1/encoders/der.js b/lib/asn1/encoders/der.js
index 2a2ff4b..f56cdfa 100644
--- a/lib/asn1/encoders/der.js
+++ b/lib/asn1/encoders/der.js
@@ -80,7 +80,7 @@ DERNode.prototype._encodeObjid = function encodeObjid(id, values, relative) {
id = values[id].split(/\s+/g);
for (var i = 0; i < id.length; i++)
id[i] |= 0;
- } else if (id) {
+ } else if (Array.isArray(id)) {
id = id.slice();
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-asn1.js.git
More information about the Pkg-javascript-commits
mailing list