Repository navigation
Commit b6f9804
Bluetooth: Fix possible NULL pointer dereference
Checking conn->pending_sec_level if there is no connection leads to potential
null pointer dereference. Don't process pin_code_request_event at all if no
connection exists.
Signed-off-by: Waldemar Rymarkiewicz <waldemar.rymarkiewicz@gmail.com>
Acked-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>1 parent 67c9e84 commit b6f9804
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2174 | 2174 | | |
2175 | 2175 | | |
2176 | 2176 | | |
2177 | | - | |
| 2177 | + | |
| 2178 | + | |
| 2179 | + | |
| 2180 | + | |
2178 | 2181 | | |
2179 | 2182 | | |
2180 | 2183 | | |
| |||
2194 | 2197 | | |
2195 | 2198 | | |
2196 | 2199 | | |
| 2200 | + | |
2197 | 2201 | | |
2198 | 2202 | | |
2199 | 2203 | | |
| |||
0 commit comments