summaryrefslogtreecommitdiff
path: root/src/lib
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 /src/lib
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 'src/lib')
-rw-r--r--src/lib/ipcpd_messages.proto20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/lib/ipcpd_messages.proto b/src/lib/ipcpd_messages.proto
index de78d809..454af0dc 100644
--- a/src/lib/ipcpd_messages.proto
+++ b/src/lib/ipcpd_messages.proto
@@ -40,14 +40,14 @@ enum ipcp_msg_code {
message ipcp_msg {
required ipcp_msg_code code = 1;
- optional bytes hash = 3;
- optional int32 port_id = 4;
- optional string dst = 5;
- optional uint32 qoscube = 6;
- optional ipcp_config_msg conf = 7;
- optional int32 pid = 8;
- optional layer_info_msg layer_info = 9;
- optional int32 response = 10;
- optional string comp = 11;
- optional int32 result = 12;
+ optional bytes hash = 2;
+ optional int32 port_id = 3;
+ optional string dst = 4;
+ optional uint32 qoscube = 5;
+ optional ipcp_config_msg conf = 6;
+ optional int32 pid = 7;
+ optional layer_info_msg layer_info = 8;
+ optional int32 response = 9;
+ optional string comp = 10;
+ optional int32 result = 11;
};