From 14975b6e7e028aea9db198c64b65526fb9bd20b7 Mon Sep 17 00:00:00 2001 From: Henning Westerholt Date: Sun, 30 Dec 2018 00:41:58 +0100 Subject: [PATCH] cdp: fix a coverity scan error, duplicated code for logical statement --- src/modules/cdp/session.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/cdp/session.c b/src/modules/cdp/session.c index dd5c026e3e7..60e97becae9 100644 --- a/src/modules/cdp/session.c +++ b/src/modules/cdp/session.c @@ -607,8 +607,8 @@ AAASession* cdp_new_cc_acc_session(str id, int is_statefull) AAASession *s; cdp_session_type_t type; - if (is_statefull) type = ACCT_CC_CLIENT; - else type = ACCT_CC_CLIENT; //for now everything will be supported through this SM (until we add IEC) + //for now everything will be supported through this SM (until we add IEC) + type = ACCT_CC_CLIENT; s = cdp_new_session(id,type); if (s) {