aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/internal.h
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-04-25 15:43:26 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-04-25 16:05:15 +0300
commit2d367411484fcc96012e7756481e597052f0bcd4 (patch)
treee1bf7a4119512c81067d4240c73798e2049ccd23 /src/microhttpd/internal.h
parent9c7c06d8b8e8beb7f45107e51ed19c1be816c762 (diff)
downloadlibmicrohttpd-2d367411484fcc96012e7756481e597052f0bcd4.tar.gz
libmicrohttpd-2d367411484fcc96012e7756481e597052f0bcd4.zip
MHD_get_daemon_info(): fixed unaligned memory access
Diffstat (limited to 'src/microhttpd/internal.h')
-rw-r--r--src/microhttpd/internal.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/microhttpd/internal.h b/src/microhttpd/internal.h
index 094c26ba..fc8ec0c6 100644
--- a/src/microhttpd/internal.h
+++ b/src/microhttpd/internal.h
@@ -2164,6 +2164,34 @@ struct MHD_Daemon
2164 * #MHD_OPTION_ARRAY are counted. 2164 * #MHD_OPTION_ARRAY are counted.
2165 */ 2165 */
2166 size_t num_opts; 2166 size_t num_opts;
2167
2168 /* TODO: replace with a single member */
2169 /**
2170 * The value to be returned by #MHD_get_daemon_info()
2171 */
2172 union MHD_DaemonInfo daemon_info_dummy_listen_fd;
2173
2174#ifdef EPOLL_SUPPORT
2175 /**
2176 * The value to be returned by #MHD_get_daemon_info()
2177 */
2178 union MHD_DaemonInfo daemon_info_dummy_epoll_fd;
2179#endif /* EPOLL_SUPPORT */
2180
2181 /**
2182 * The value to be returned by #MHD_get_daemon_info()
2183 */
2184 union MHD_DaemonInfo daemon_info_dummy_num_connections;
2185
2186 /**
2187 * The value to be returned by #MHD_get_daemon_info()
2188 */
2189 union MHD_DaemonInfo daemon_info_dummy_flags;
2190
2191 /**
2192 * The value to be returned by #MHD_get_daemon_info()
2193 */
2194 union MHD_DaemonInfo daemon_info_dummy_port;
2167}; 2195};
2168 2196
2169 2197