mirror of https://github.com/lukechilds/node.git
Browse Source
Fixes a SIGSEGV by making sure `txt_chunk` is not empty before setting it on `txt_records` Fixes: https://github.com/joyent/node/issues/9285 PR-URL: https://github.com/joyent/node/pull/9300 Reviewed-By: cjihrig - Colin Ihrig <cjihrig@gmail.com> Reviewed-By: jasnell - James M Snell <jasnell@gmail.com>v0.12-staging
committed by
James M Snell
2 changed files with 11 additions and 2 deletions
@ -0,0 +1,8 @@ |
|||
var common = require('../common'); |
|||
var assert = require('assert'); |
|||
var dns = require('dns'); |
|||
|
|||
dns.resolveTxt('www.microsoft.com', function(err, records) { |
|||
assert.equal(err, null); |
|||
assert.equal(records.length, 0); |
|||
}); |
Loading…
Reference in new issue