Commit 25d1f08
committed
prepare_listener: initialize sock to -1
Fixes a bug on the error path at the bad: label where it is assumed
that sock is either a valid fd or -1.
Found by the ZeroPath AI Security Engineer <https://zeropath.com>1 parent 7eaa526 commit 25d1f08
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
222 | 222 | | |
223 | 223 | | |
224 | 224 | | |
225 | | - | |
| 225 | + | |
226 | 226 | | |
227 | 227 | | |
228 | 228 | | |
| |||
0 commit comments