summaryrefslogtreecommitdiff
path: root/src/ipcpd
diff options
context:
space:
mode:
authorSander Vrijders <sander.vrijders@ugent.be>2017-03-22 16:38:19 +0000
committerdimitri staessens <dimitri.staessens@ugent.be>2017-03-22 16:38:19 +0000
commit22ec3addff9fd786fdd6917c5fd5800beab49d0c (patch)
tree5134af1cb5718df974ce276a511be19a17b7b7ae /src/ipcpd
parente8e0f3eff3e7fc7e5c7949bd2726ab659d3c04ed (diff)
parentcc17dcbd61f0230db4c8a05ae489e1025c0669e2 (diff)
downloadouroboros-22ec3addff9fd786fdd6917c5fd5800beab49d0c.tar.gz
ouroboros-22ec3addff9fd786fdd6917c5fd5800beab49d0c.zip
Merged in sandervrijders/ouroboros/be-memset (pull request #415)
ipcpd: normal: Add memset of conn_info
Diffstat (limited to 'src/ipcpd')
-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;