From e78740a4da0feb678f22bbc22b4c14a1f9a7bf7f Mon Sep 17 00:00:00 2001 From: Dimitri Staessens Date: Thu, 22 Mar 2018 16:13:19 +0100 Subject: irmd: Fix memleak when failing to list ipcps The list_ipcps call had a memleak in the failure case. Also fixes a compiler warning for a possible uninitialized variable and renumbers the gpb ipcpd message fields. Signed-off-by: Dimitri Staessens Signed-off-by: Sander Vrijders --- include/ouroboros/ipcp.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/ouroboros/ipcp.h b/include/ouroboros/ipcp.h index dc2c37f5..c7013f08 100644 --- a/include/ouroboros/ipcp.h +++ b/include/ouroboros/ipcp.h @@ -39,7 +39,8 @@ enum ipcp_type { IPCP_RAPTOR, IPCP_ETH_LLC, IPCP_ETH_DIX, - IPCP_UDP + IPCP_UDP, + IPCP_INVALID }; /* Normal IPCP policies */ -- cgit v1.2.3