summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/dgram.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dgram.js b/lib/dgram.js
index 3a54c3c7f1..39d43092e1 100644
--- a/lib/dgram.js
+++ b/lib/dgram.js
@@ -350,7 +350,7 @@ Socket.prototype.send = function(buffer,
self.bind({port: 0, exclusive: true}, null);
if (list.length === 0)
- list.push(Buffer.allocUnsafe(0));
+ list.push(Buffer.alloc(0));
// If the socket hasn't been bound yet, push the outbound packet onto the
// send queue and send after binding is complete.