aboutsummaryrefslogtreecommitdiffstats
path: root/community/gvm-libs/fix-sigsegv-no-plugin_feed_info.inc-file-present.patch
diff options
context:
space:
mode:
authorFrancesco Colista <fcolista@alpinelinux.org>2019-10-21 16:24:39 +0000
committerFrancesco Colista <fcolista@alpinelinux.org>2019-10-21 20:01:23 +0000
commit361a773271accab3fb59cc5e13cf6c81f1cdcda4 (patch)
tree8c85d095bdc10fff8e591270154123e5e6734a75 /community/gvm-libs/fix-sigsegv-no-plugin_feed_info.inc-file-present.patch
parentbdb856ef235be40005953635fe7c92a076fadd53 (diff)
downloadaports-361a773271accab3fb59cc5e13cf6c81f1cdcda4.tar.gz
aports-361a773271accab3fb59cc5e13cf6c81f1cdcda4.tar.bz2
aports-361a773271accab3fb59cc5e13cf6c81f1cdcda4.tar.xz
community/gvm-libs: added patches to make gvm work again
Diffstat (limited to 'community/gvm-libs/fix-sigsegv-no-plugin_feed_info.inc-file-present.patch')
-rw-r--r--community/gvm-libs/fix-sigsegv-no-plugin_feed_info.inc-file-present.patch13
1 files changed, 13 insertions, 0 deletions
diff --git a/community/gvm-libs/fix-sigsegv-no-plugin_feed_info.inc-file-present.patch b/community/gvm-libs/fix-sigsegv-no-plugin_feed_info.inc-file-present.patch
new file mode 100644
index 0000000000..e343c2c079
--- /dev/null
+++ b/community/gvm-libs/fix-sigsegv-no-plugin_feed_info.inc-file-present.patch
@@ -0,0 +1,13 @@
+diff --git a/util/nvticache.c b/util/nvticache.c
+index 162e5851..9a2b7287 100644
+--- a/util/nvticache.c
++++ b/util/nvticache.c
+@@ -189,7 +189,7 @@ nvticache_save ()
+ }
+ old_version = nvticache_feed_version ();
+ feed_version = nvt_feed_version ();
+- if (g_strcmp0 (old_version, feed_version))
++ if (feed_version && g_strcmp0 (old_version, feed_version))
+ {
+ kb_item_set_str (cache_kb, NVTICACHE_STR, feed_version, 0);
+ g_message ("Updated NVT cache from version %s to %s", old_version,