mirror of
https://github.com/optim-enterprises-bv/nDPId.git
synced 2025-10-29 17:32:23 +00:00
Added SonarCloud exclusions for third-party files and files lacking relevance.
* fixed two other "bugs" Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
This commit is contained in:
@@ -119,7 +119,7 @@ struct distributor_global_user_data
|
||||
{
|
||||
int do_hash_checks;
|
||||
} options;
|
||||
};
|
||||
} __attribute__((__packed__));
|
||||
|
||||
struct distributor_flow_user_data
|
||||
{
|
||||
|
||||
@@ -1062,7 +1062,7 @@ static int new_connection(struct nio * const io, int eventfd)
|
||||
pwsiz = BUFSIZ;
|
||||
}
|
||||
char buf[pwsiz];
|
||||
if (getpwuid_r(ucred.uid, &pwnam, &buf[0], pwsiz, &pwres) != 0)
|
||||
if (getpwuid_r(ucred.uid, &pwnam, &buf[0], pwsiz, &pwres) != 0 || pwres == NULL)
|
||||
{
|
||||
logger(1, "Could not get passwd entry for user id %u", ucred.uid);
|
||||
return 1;
|
||||
|
||||
@@ -6,3 +6,4 @@ sonar.projectVersion=1.5
|
||||
|
||||
sonar.sourceEncoding=UTF-8
|
||||
sonar.sources=*.c,*.h,dependencies/nDPIsrvd.h,dependencies/nDPIsrvd.py,examples/c-*/**,examples/cxx-*/**,examples/py-*/**
|
||||
sonar.exclusions = dependencies/jsmn/** dependencies/uthash/** examples/js-rt-analyzer-frontend/** examples/js-rt-analyzer/** examples/c-collectd/www/** examples/py-flow-dashboard/assets/**
|
||||
|
||||
Reference in New Issue
Block a user