1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

Merge pull request #18693 from HendrikVE/pr/fix_missing_null_initialization_async_cb

pkg/lwip: add missing initialization for async_cb
This commit is contained in:
benpicco 2022-10-06 10:12:57 +02:00 committed by GitHub
commit 68653d6ee7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -45,6 +45,7 @@ int sock_ip_create(sock_ip_t *sock, const sock_ip_ep_t *local,
NETCONN_RAW)) == 0) {
sock->base.conn = tmp;
#if IS_ACTIVE(SOCK_HAS_ASYNC)
sock->base.async_cb.gen = NULL;
netconn_set_callback_arg(sock->base.conn, &sock->base);
#endif
}

View File

@ -41,6 +41,7 @@ int sock_udp_create(sock_udp_t *sock, const sock_udp_ep_t *local,
NETCONN_UDP)) == 0) {
sock->base.conn = tmp;
#if IS_ACTIVE(SOCK_HAS_ASYNC)
sock->base.async_cb.gen = NULL;
netconn_set_callback_arg(sock->base.conn, &sock->base);
#endif
}