From: Daniel Wagner Date: Tue, 12 Apr 2011 06:53:35 +0000 (+0200) Subject: session: Fix allowed_bearers initialization X-Git-Tag: 0.73~26 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8d222f87ce097abf1591e54bf93bb3466920804c;p=platform%2Fupstream%2Fconnman.git session: Fix allowed_bearers initialization --- diff --git a/src/session.c b/src/session.c index d681d72b..b07749e1 100644 --- a/src/session.c +++ b/src/session.c @@ -970,13 +970,15 @@ int __connman_session_create(DBusMessage *msg) session->ecall = ecall; session->roaming_policy = roaming_policy; - if (session->allowed_bearers == NULL) { + if (allowed_bearers == NULL) { session->allowed_bearers = session_allowed_bearers_any(); if (session->allowed_bearers == NULL) { err = -ENOMEM; goto err; } + } else { + session->allowed_bearers = allowed_bearers; } session->service_list = NULL;