You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2024/03/19 18:25:38 UTC
(nuttx-apps) branch master updated: dhcpc: reset the state of the "cancel" variable when restarting the async dhcpc thread.
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git
The following commit(s) were added to refs/heads/master by this push:
new 8cb0bf3ea dhcpc: reset the state of the "cancel" variable when restarting the async dhcpc thread.
8cb0bf3ea is described below
commit 8cb0bf3eabe859f9a89794f391e2e13bdb5fd2ad
Author: Sebastien Lorquet <se...@lorquet.fr>
AuthorDate: Tue Mar 19 16:47:36 2024 +0100
dhcpc: reset the state of the "cancel" variable when restarting the async dhcpc thread.
---
netutils/dhcpc/dhcpc.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/netutils/dhcpc/dhcpc.c b/netutils/dhcpc/dhcpc.c
index ae758a0a5..4027b14ce 100644
--- a/netutils/dhcpc/dhcpc.c
+++ b/netutils/dhcpc/dhcpc.c
@@ -959,6 +959,7 @@ int dhcpc_request_async(FAR void *handle, dhcpc_callback_t callback)
}
pdhcpc->callback = callback;
+ pdhcpc->cancel = 0;
ret = pthread_create(&pdhcpc->thread, NULL, dhcpc_run, pdhcpc);
if (ret != 0)
{