summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDimitri Staessens <dimitri.staessens@ugent.be>2018-03-22 16:13:19 +0100
committerSander Vrijders <sander.vrijders@ugent.be>2018-03-22 16:29:06 +0100
commite78740a4da0feb678f22bbc22b4c14a1f9a7bf7f (patch)
tree80acdebc62a722dee1bf5a263b0f02c894bb3152 /include
parent751fb58bcf5fdb31c0627a5153684e96126cffb6 (diff)
downloadouroboros-e78740a4da0feb678f22bbc22b4c14a1f9a7bf7f.tar.gz
ouroboros-e78740a4da0feb678f22bbc22b4c14a1f9a7bf7f.zip
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 <dimitri.staessens@ugent.be> Signed-off-by: Sander Vrijders <sander.vrijders@ugent.be>
Diffstat (limited to 'include')
-rw-r--r--include/ouroboros/ipcp.h3
1 files changed, 2 insertions, 1 deletions
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 */