mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
src: fix flags argument offset in JSUdpWrap
Signed-off-by: Weixie Cui <cuiweixie@gmail.com> PR-URL: https://github.com/nodejs/node/pull/61948 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
1 parent
89ad7dc63b
commit
cf39566277
1 file changed
+1
-1
+1
-1
@@ -157,7 +157,7 @@ void JSUDPWrap::EmitReceived(const FunctionCallbackInfo<Value>& args) {
|
||||
int family = args[1].As<Int32>()->Value() == 4 ? AF_INET : AF_INET6;
|
||||
Utf8Value address(env->isolate(), args[2]);
|
||||
int port = args[3].As<Int32>()->Value();
|
||||
int flags = args[3].As<Int32>()->Value();
|
||||
int flags = args[4].As<Int32>()->Value();
|
||||
|
||||
sockaddr_storage addr;
|
||||
CHECK_EQ(sockaddr_for_family(family, *address, port, &addr), 0);
|
||||
|
||||
Reference in new issue
Block a user