Skip to content

net: fix abort on bad address input

Rodrigo Muino Tomonari requested to merge github/fork/BridgeAR/fix-segfault into master

Calling net.createConnection with a bad path results in a segfault. This fixes this by checking for the type and by throwing a TypeError in case it's not a string.

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines
Affected core subsystem(s)

net

Merge request reports

Loading