Commit 7fd9dd6
fix nullptr-dereference in SocketAddress
Summary: When `getaddrinfo` fails, `SocketAddress` attempts to describe the error and throw an exception with that description. It includes the `gai_strerror`, which is a C-string, without checking whether the result is nullptr. On linux it is not `nullptr` but you never know.
Reviewed By: knekritz
Differential Revision: D70713343
fbshipit-source-id: 8d6c3710e51610a1ca43886f668941f5e47130541 parent e43ee69 commit 7fd9dd6
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | | - | |
| 118 | + | |
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
| |||
0 commit comments