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

crypto: Clear error after DiffieHellman key errors #5501

Merged
merged 1 commit into from
May 20, 2013

Conversation

isaacs
Copy link

@isaacs isaacs commented May 18, 2013

@@ -3629,21 +3629,22 @@ class DiffieHellman : public ObjectWrap {
BN_free(key);
delete[] data;

Local<String> errmsg;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make ClearErrorOnReturn a top-level type and create an instance at the top of this function, then you don't have to reshuffle all this code.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bnoordhuis/node@59430ac for an example. Feel free to steal.

@isaacs isaacs merged commit 3a2b503 into nodejs:v0.10 May 20, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants