diff options
author | dimitri staessens <dimitri.staessens@ugent.be> | 2017-03-14 19:39:14 +0100 |
---|---|---|
committer | dimitri staessens <dimitri.staessens@ugent.be> | 2017-03-14 19:42:38 +0100 |
commit | e26ddb08e8a5f37ca2caf9bd7a96c956816e96de (patch) | |
tree | e95f8f7aebc8af0003ff5d99fc1ef9b4d93be534 | |
parent | f18293b1458ebfb6105812868c15ba9be5661ba2 (diff) | |
download | ouroboros-e26ddb08e8a5f37ca2caf9bd7a96c956816e96de.tar.gz ouroboros-e26ddb08e8a5f37ca2caf9bd7a96c956816e96de.zip |
ipcpd: Fix disregarding qs in connmgr
-rw-r--r-- | src/ipcpd/normal/connmgr.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/ipcpd/normal/connmgr.c b/src/ipcpd/normal/connmgr.c index 87daeddb..c86beae8 100644 --- a/src/ipcpd/normal/connmgr.c +++ b/src/ipcpd/normal/connmgr.c @@ -1,7 +1,7 @@ /* * Ouroboros - Copyright (C) 2016 - 2017 * - * Handles the different AP connections + * Handles AE connections * * Dimitri Staessens <dimitri.staessens@ugent.be> * Sander Vrijders <sander.vrijders@ugent.be> @@ -285,7 +285,10 @@ int connmgr_alloc(struct ae * ae, return -1; } - conn->flow_info.qs = *qs; + if (qs != NULL) + conn->flow_info.qs = *qs; + else + memset(&conn->flow_info.qs, 0, sizeof(conn->flow_info.qs)); if (flow_alloc_res(conn->flow_info.fd)) { log_err("Flow allocation to %s failed.", dst_name); |