diff options
author | dimitri staessens <[email protected]> | 2016-12-24 21:12:21 +0100 |
---|---|---|
committer | dimitri staessens <[email protected]> | 2016-12-24 21:22:53 +0100 |
commit | d937595df1211d6b575da8b7d135933f9a2987f8 (patch) | |
tree | 1ca0cc6221db822817a6fc9fdd4b0d55929b4bdb /src/lib/dev.c | |
parent | af7441a66d1e3cfb43e0a00785b1636b927f40e6 (diff) | |
download | ouroboros-d937595df1211d6b575da8b7d135933f9a2987f8.tar.gz ouroboros-d937595df1211d6b575da8b7d135933f9a2987f8.zip |
lib: Initialise qos cube to best effort
The QoS cubes were not initialized in dev.c, which sometimes caused
segfaults in the fmgr when calling ipcp_flow_get_qoscube.
Diffstat (limited to 'src/lib/dev.c')
-rw-r--r-- | src/lib/dev.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lib/dev.c b/src/lib/dev.c index b35045f5..7aa27089 100644 --- a/src/lib/dev.c +++ b/src/lib/dev.c @@ -214,6 +214,7 @@ static void reset_flow(int fd) ai.flows[fd].oflags = 0; ai.flows[fd].api = -1; ai.flows[fd].timesout = false; + ai.flows[fd].qos = QOS_CUBE_BE; } int ap_init(char * ap_name) @@ -268,6 +269,7 @@ int ap_init(char * ap_name) ai.flows[i].oflags = 0; ai.flows[i].api = -1; ai.flows[i].timesout = false; + ai.flows[i].qos = QOS_CUBE_BE; } ai.ports = malloc(sizeof(*ai.ports) * IRMD_MAX_FLOWS); |