summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/addr.c7
-rw-r--r--src/lib/class.c7
-rw-r--r--src/lib/cls.c7
-rw-r--r--src/lib/ct.c7
-rw-r--r--src/lib/exp.c7
-rw-r--r--src/lib/link.c7
-rw-r--r--src/lib/neigh.c7
-rw-r--r--src/lib/qdisc.c7
-rw-r--r--src/lib/route.c7
-rw-r--r--src/lib/rule.c7
-rw-r--r--src/lib/tc.c7
-rw-r--r--src/lib/utils.c12
12 files changed, 4 insertions, 85 deletions
diff --git a/src/lib/addr.c b/src/lib/addr.c
index 5d39f7cb..a79e9b4e 100644
--- a/src/lib/addr.c
+++ b/src/lib/addr.c
@@ -1,12 +1,5 @@
/* SPDX-License-Identifier: LGPL-2.1-only */
/*
- * src/lib/addr.c Address Helpers
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation version 2.1
- * of the License.
- *
* Copyright (c) 2008-2009 Thomas Graf <tgraf@suug.ch>
*/
diff --git a/src/lib/class.c b/src/lib/class.c
index 162e5427..d7312c38 100644
--- a/src/lib/class.c
+++ b/src/lib/class.c
@@ -1,12 +1,5 @@
/* SPDX-License-Identifier: LGPL-2.1-only */
/*
- * src/lib/class.c CLI Class Helpers
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation version 2.1
- * of the License.
- *
* Copyright (c) 2010-2011 Thomas Graf <tgraf@suug.ch>
*/
diff --git a/src/lib/cls.c b/src/lib/cls.c
index a5ac9251..d8fd1a8b 100644
--- a/src/lib/cls.c
+++ b/src/lib/cls.c
@@ -1,12 +1,5 @@
/* SPDX-License-Identifier: LGPL-2.1-only */
/*
- * src/lib/cls.c CLI Classifier Helpers
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation version 2.1
- * of the License.
- *
* Copyright (c) 2010-2011 Thomas Graf <tgraf@suug.ch>
*/
diff --git a/src/lib/ct.c b/src/lib/ct.c
index e6732ae0..c00c0fbd 100644
--- a/src/lib/ct.c
+++ b/src/lib/ct.c
@@ -1,12 +1,5 @@
/* SPDX-License-Identifier: LGPL-2.1-only */
/*
- * src/lib/ct.c CLI Conntrack Helpers
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation version 2.1
- * of the License.
- *
* Copyright (c) 2008-2009 Thomas Graf <tgraf@suug.ch>
*/
diff --git a/src/lib/exp.c b/src/lib/exp.c
index 732843f9..48d4ea01 100644
--- a/src/lib/exp.c
+++ b/src/lib/exp.c
@@ -1,12 +1,5 @@
/* SPDX-License-Identifier: LGPL-2.1-only */
/*
- * src/lib/exp.c CLI Expectation Helpers
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation version 2.1
- * of the License.
- *
* Copyright (c) 2008-2009 Thomas Graf <tgraf@suug.ch>
* Copyright (c) 2012 Rich Fought <rich.fought@watchguard.com>
*/
diff --git a/src/lib/link.c b/src/lib/link.c
index ae367e4a..d1c3e4b0 100644
--- a/src/lib/link.c
+++ b/src/lib/link.c
@@ -1,12 +1,5 @@
/* SPDX-License-Identifier: LGPL-2.1-only */
/*
- * src/lib/link.c CLI Link Helpers
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation version 2.1
- * of the License.
- *
* Copyright (c) 2008-2010 Thomas Graf <tgraf@suug.ch>
*/
diff --git a/src/lib/neigh.c b/src/lib/neigh.c
index 75862c7b..5b44f478 100644
--- a/src/lib/neigh.c
+++ b/src/lib/neigh.c
@@ -1,12 +1,5 @@
/* SPDX-License-Identifier: LGPL-2.1-only */
/*
- * src/lib/neigh.c CLI Neighbour Helpers
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation version 2.1
- * of the License.
- *
* Copyright (c) 2008-2009 Thomas Graf <tgraf@suug.ch>
*/
diff --git a/src/lib/qdisc.c b/src/lib/qdisc.c
index ea047c2f..beb83cc4 100644
--- a/src/lib/qdisc.c
+++ b/src/lib/qdisc.c
@@ -1,12 +1,5 @@
/* SPDX-License-Identifier: LGPL-2.1-only */
/*
- * src/lib/qdisc.c CLI QDisc Helpers
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation version 2.1
- * of the License.
- *
* Copyright (c) 2008-2011 Thomas Graf <tgraf@suug.ch>
*/
diff --git a/src/lib/route.c b/src/lib/route.c
index 9d0fbe83..7297a2f6 100644
--- a/src/lib/route.c
+++ b/src/lib/route.c
@@ -1,12 +1,5 @@
/* SPDX-License-Identifier: LGPL-2.1-only */
/*
- * src/lib/route.c CLI Route Helpers
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation version 2.1
- * of the License.
- *
* Copyright (c) 2008-2009 Thomas Graf <tgraf@suug.ch>
*/
diff --git a/src/lib/rule.c b/src/lib/rule.c
index 213eca2a..6ef93214 100644
--- a/src/lib/rule.c
+++ b/src/lib/rule.c
@@ -1,12 +1,5 @@
/* SPDX-License-Identifier: LGPL-2.1-only */
/*
- * src/lib/rule.c CLI Routing Rule Helpers
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation version 2.1
- * of the License.
- *
* Copyright (c) 2008-2009 Thomas Graf <tgraf@suug.ch>
*/
diff --git a/src/lib/tc.c b/src/lib/tc.c
index 5d3a2035..ba3de180 100644
--- a/src/lib/tc.c
+++ b/src/lib/tc.c
@@ -1,12 +1,5 @@
/* SPDX-License-Identifier: LGPL-2.1-only */
/*
- * src/lib/tc.c CLI Traffic Control Helpers
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation version 2.1
- * of the License.
- *
* Copyright (c) 2010 Thomas Graf <tgraf@suug.ch>
*/
diff --git a/src/lib/utils.c b/src/lib/utils.c
index 3aa2a90c..cbcdafe9 100644
--- a/src/lib/utils.c
+++ b/src/lib/utils.c
@@ -1,12 +1,5 @@
/* SPDX-License-Identifier: LGPL-2.1-only */
/*
- * src/utils.c Utilities
- *
- * This library is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation version 2.1
- * of the License.
- *
* Copyright (c) 2003-2009 Thomas Graf <tgraf@suug.ch>
*/
@@ -236,10 +229,13 @@ void nl_cli_load_module(const char *prefix, const char *name)
{
void *handle;
- if (!(handle = dlopen(path, RTLD_NOW))) {
+ handle = dlopen(path, RTLD_NOW);
+ if (!handle) {
nl_cli_fatal(ENOENT, "Unable to load module \"%s\": %s\n",
path, dlerror());
}
+ /* We intentionally leak the dlopen handle. */
+ /* coverity[RESOURCE_LEAK] */
}
#else
nl_cli_fatal(ENOTSUP, "Unable to load module \"%s\": built without dynamic libraries support\n",