Commit af579907 authored by Ben Noordhuis's avatar Ben Noordhuis Committed by Gibson Fahnestock
Browse files

src: fix bad sizeof expression

It was computing the size of the pointer, not the size of the pointed-to
object.

Introduced in commit 727b2911 ("src,dns: refactor cares_wrap to avoid
global state".)

PR-URL: https://github.com/nodejs/node/pull/17014


Reviewed-By: default avatarAnna Henningsen <anna@addaleax.net>
Reviewed-By: default avatarColin Ihrig <cjihrig@gmail.com>
Reviewed-By: default avatarDaniel Bevenius <daniel.bevenius@gmail.com>
Reviewed-By: default avatarFranziska Hinkelmann <franziska.hinkelmann@gmail.com>
Reviewed-By: default avatarGireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: default avatarJames M Snell <jasnell@gmail.com>
Reviewed-By: default avatarRefael Ackermann <refack@gmail.com>
Reviewed-By: default avatarTobias Nießen <tniessen@tnie.de>
parent ab46b8eb
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment