From d21c4d5b0e7f42fe09784f11fa5776ff305e4fdf Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Mon, 28 Aug 2023 10:22:43 +0200 Subject: ipcpd: Set IPCP states in common sources The state of the IPCP was set and checked in the main files, but it's more convenient to do it in the common source. Signed-off-by: Dimitri Staessens Signed-off-by: Sander Vrijders --- src/ipcpd/udp/main.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/ipcpd/udp/main.c') diff --git a/src/ipcpd/udp/main.c b/src/ipcpd/udp/main.c index 62cd3181..86bb1afe 100644 --- a/src/ipcpd/udp/main.c +++ b/src/ipcpd/udp/main.c @@ -658,8 +658,6 @@ static int udp_ipcp_bootstrap(const struct ipcp_config * conf) udp_data.dns_addr = conf->udp.dns_addr; - ipcp_set_state(IPCP_OPERATIONAL); - if (pthread_create(&udp_data.mgmt_handler, NULL, udp_ipcp_mgmt_handler, NULL)) { ipcp_set_state(IPCP_INIT); -- cgit v1.2.3