Commit b2c338b
committed
Don't add sockfd to fd_set if it is invalid.
serial_poll() only uses the validity of the connfd descriptor to
determine if the serial module has been initialized, but it must also
check if the sockfd has been opened before accepting connections on it.
Reported-by: Luigi Leonardi <[email protected]>1 parent 36cd767 commit b2c338b
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
51 | 54 | | |
52 | 55 | | |
53 | 56 | | |
| |||
0 commit comments