diff options
author | Sander Vrijders <[email protected]> | 2017-03-22 16:38:19 +0000 |
---|---|---|
committer | dimitri staessens <[email protected]> | 2017-03-22 16:38:19 +0000 |
commit | 22ec3addff9fd786fdd6917c5fd5800beab49d0c (patch) | |
tree | 5134af1cb5718df974ce276a511be19a17b7b7ae | |
parent | e8e0f3eff3e7fc7e5c7949bd2726ab659d3c04ed (diff) | |
parent | cc17dcbd61f0230db4c8a05ae489e1025c0669e2 (diff) | |
download | ouroboros-22ec3addff9fd786fdd6917c5fd5800beab49d0c.tar.gz ouroboros-22ec3addff9fd786fdd6917c5fd5800beab49d0c.zip |
Merged in sandervrijders/ouroboros/be-memset (pull request #415)
ipcpd: normal: Add memset of conn_info
-rw-r--r-- | src/ipcpd/normal/fmgr.c | 2 | ||||
-rw-r--r-- | src/ipcpd/normal/ribmgr.c | 2 |
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; |