[sssd PR#5695][opened] CACHE_REQ: fixed covscan issues
by alexey-tikhonov
URL: https://github.com/SSSD/sssd/pull/5695
Author: alexey-tikhonov
Title: #5695: CACHE_REQ: fixed covscan issues
Action: opened
PR body:
"""
Fixed following warning:
```
Error: GCC_ANALYZER_WARNING (CWE-476):
sssd-2.5.1/src/responder/common/cache_req/cache_req_data.c: scope_hint: In function 'cache_req_data_create'
sssd-2.5.1/src/responder/common/cache_req/cache_req_data.c:160:28: warning[-Wanalyzer-null-dereference]: dereference of NULL '0'
# 158| break;
# 159| case CACHE_REQ_SVC_BY_NAME:
# 160|-> if (input->svc.name->input == NULL) {
# 161| DEBUG(SSSDBG_CRIT_FAILURE, "Bug: name cannot be NULL!\n");
# 162| ret = ERR_INTERNAL;
```
"""
To pull the PR as Git branch:
git remote add ghsssd https://github.com/SSSD/sssd
git fetch ghsssd pull/5695/head:pr5695
git checkout pr5695
2 years, 9 months