diff options
| author | Thiago Macieira <thiago.macieira@intel.com> | 2023-07-11 07:44:20 -0700 |
|---|---|---|
| committer | Thiago Macieira <thiago.macieira@intel.com> | 2023-07-11 13:44:29 -0700 |
| commit | 5bcacdbd1aa237cb3d39ffafbe378688a00ea502 (patch) | |
| tree | 6965f68a0fe9caabc929d13656f0c3e2afa804a9 /src/gui/doc/snippets/textdocument-frames/mainwindow.cpp | |
| parent | 536a4299be21137f73649173416161bb554bc07f (diff) | |
QNetworkInterface/Linux: fix mismatch of pointer and pointee
It was hard to see the problem because of the lambda, combined with
reinterpret_cast on the output of non-typesafe C macro. NLMSG_DATA
returns a void*, so use static_cast to be sure not to do something
wrong.
This only affected the code that dealt with unexpected replies from the
Linux kernel, which it doesn't send. So I don't expect this fixes any
improper QNetworkInterface behavior.
Found by CodeChecker.
Pick-to: 6.5 6.6
Change-Id: I61b74deaf2514644a24efffd1770d75e5a4f2636
Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Diffstat (limited to 'src/gui/doc/snippets/textdocument-frames/mainwindow.cpp')
0 files changed, 0 insertions, 0 deletions
