From d937595df1211d6b575da8b7d135933f9a2987f8 Mon Sep 17 00:00:00 2001 From: dimitri staessens Date: Sat, 24 Dec 2016 21:12:21 +0100 Subject: 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. --- src/lib/dev.c | 2 ++ 1 file changed, 2 insertions(+) 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); -- cgit v1.2.3