crypto: fix mem {de}allocation in ExportChallenge
authorKarl Skomski <karl@skomski.com>
Wed, 12 Aug 2015 13:30:01 +0000 (15:30 +0200)
committerFedor Indutny <fedor@indutny.com>
Fri, 21 Aug 2015 05:01:09 +0000 (22:01 -0700)
commit34985a1cbd62669dfc07905af8dcc7f5a6529fd8
tree077e0e20ee1a8a03b5f7e5c454a982517d6d59dc
parentf1810ed1b86cbbe5560a96839f5320b4be6ec5f7
crypto: fix mem {de}allocation in ExportChallenge

Use correct deallocator for returned buffera.
Don't free internal structure via ASN1_STRING_data.
Deallocate NETSCAPE_SPKI.

PR-URL: https://github.com/nodejs/node/pull/2359
Reviewed-By: Fedor Indutny <fedor@indutny.com>
src/node_crypto.cc