summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSander Vrijders <sander.vrijders@ugent.be>2017-03-22 17:37:53 +0100
committerSander Vrijders <sander.vrijders@ugent.be>2017-03-22 17:37:53 +0100
commitcc17dcbd61f0230db4c8a05ae489e1025c0669e2 (patch)
tree5134af1cb5718df974ce276a511be19a17b7b7ae
parente8e0f3eff3e7fc7e5c7949bd2726ab659d3c04ed (diff)
downloadouroboros-cc17dcbd61f0230db4c8a05ae489e1025c0669e2.tar.gz
ouroboros-cc17dcbd61f0230db4c8a05ae489e1025c0669e2.zip
ipcpd: normal: Add memset of conn_info
This initializes conn_info in the ribmgr and fmgr before it is passed to cacep.
-rw-r--r--src/ipcpd/normal/fmgr.c2
-rw-r--r--src/ipcpd/normal/ribmgr.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/src/ipcpd/normal/fmgr.c b/src/ipcpd/normal/fmgr.c
index e78dd2d6..2906b9e2 100644
--- a/src/ipcpd/normal/fmgr.c
+++ b/src/ipcpd/normal/fmgr.c
@@ -289,6 +289,8 @@ int fmgr_init(void)
}
}
+ memset(&info, 0, sizeof(info));
+
strcpy(info.ae_name, DT_AE);
strcpy(info.protocol, FRCT_PROTO);
info.pref_version = 1;
diff --git a/src/ipcpd/normal/ribmgr.c b/src/ipcpd/normal/ribmgr.c
index ec465c6b..ef79f627 100644
--- a/src/ipcpd/normal/ribmgr.c
+++ b/src/ipcpd/normal/ribmgr.c
@@ -78,6 +78,8 @@ int ribmgr_init(void)
enum pol_gam pg;
struct conn_info info;
+ memset(&info, 0, sizeof(info));
+
strcpy(info.ae_name, MGMT_AE);
strcpy(info.protocol, CDAP_PROTO);
info.pref_version = 1;