Commit 39488f3
committed
fix: guard against undefined/NaN port in reserveLoopbackPort close callback
The close callback used `=== null || <= 0` which fails to catch
undefined and NaN (both skip the guard in JS). Switch to `== null ||
!(port > 0)` so the check mirrors the error handler's positive-check
pattern and rejects any non-positive value.1 parent 3fb511a commit 39488f3
1 file changed
Lines changed: 4 additions & 1 deletion
File tree
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
247 | 247 | | |
248 | 248 | | |
249 | 249 | | |
250 | | - | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
251 | 254 | | |
252 | 255 | | |
253 | 256 | | |
| |||
0 commit comments