permission: guard UDP handle adoption · nodejs/node@01a8ae0 · GitHub
Skip to content

Commit 01a8ae0

Browse files
RafaelGSSaduh95
authored andcommitted
permission: guard UDP handle adoption
Signed-off-by: RafaelGSS <rafael.nunu@hotmail.com> PR-URL: #65358 Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 1d6ec2d commit 01a8ae0

3 files changed

Lines changed: 150 additions & 0 deletions

File tree

src/udp_wrap.cc

Lines changed: 14 additions & 0 deletions

src/udp_wrap.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ class UDPWrap final : public HandleWrap,
214214

215215
uv_udp_t handle_;
216216

217+
bool net_permission_granted_ = false;
217218
bool current_send_has_callback_;
218219
v8::Local<v8::Object> current_send_req_wrap_;
219220
};
Lines changed: 135 additions & 0 deletions

0 commit comments

Comments
 (0)