[Openvas-commits] r3424 - in trunk/openvas-client: . src/util
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Tue May 19 14:57:45 CEST 2009
Author: felix
Date: 2009-05-19 14:57:44 +0200 (Tue, 19 May 2009)
New Revision: 3424
Modified:
trunk/openvas-client/ChangeLog
trunk/openvas-client/src/util/openvas_ssh_rpm.c
Log:
Fixed bug that occurred due to a freed static string when executing rpm
generator script more than once.
* src/util/openvas_ssh_rpm.c (openvas_ssh_rpm_create): Dont free
oltap_path to allow multiple executions.
Modified: trunk/openvas-client/ChangeLog
===================================================================
--- trunk/openvas-client/ChangeLog 2009-05-19 10:19:38 UTC (rev 3423)
+++ trunk/openvas-client/ChangeLog 2009-05-19 12:57:44 UTC (rev 3424)
@@ -1,6 +1,16 @@
2009-05-19 Felix Wolfsteller <felix.wolfsteller at intevation.de>
+ Fixed bug that occurred due to a freed static string when executing rpm
+ generator script more than once.
+
+ * src/util/openvas_ssh_rpm.c (openvas_ssh_rpm_create): Dont free
+ oltap_path to allow multiple executions.
+
+2009-05-19 Felix Wolfsteller <felix.wolfsteller at intevation.de>
+
Respect the changed signature of filename functions.
+ Changed location of installer/packages from .openvas/lsc-credentials to
+ .openvas/lsc-mngt.
* src/gui/ssh_keys_dialog.c (ssh_keys_dialog_prompt_new),
src/util/openvas_lsc_user_deb.c (openvas_lsc_user_deb): Respect new
Modified: trunk/openvas-client/src/util/openvas_ssh_rpm.c
===================================================================
--- trunk/openvas-client/src/util/openvas_ssh_rpm.c 2009-05-19 10:19:38 UTC (rev 3423)
+++ trunk/openvas-client/src/util/openvas_ssh_rpm.c 2009-05-19 12:57:44 UTC (rev 3424)
@@ -45,6 +45,7 @@
#include "openvas_lsc_target_prep.h"
#include "openvas_ssh_rpm.h"
+
/**
* @brief Creates a temporary directory to place copy of key and as working
* @brief directory for the RPM generator script.
@@ -175,7 +176,6 @@
tmpdir = create_tmp_dir();
if (tmpdir == NULL)
{
- g_free (oltap_path);
return FALSE;
}
@@ -190,7 +190,6 @@
g_free (pubkey_basename);
g_free (new_pubkey_filename);
g_free (tmpdir);
- g_free (oltap_path);
return FALSE;
}
@@ -228,7 +227,6 @@
g_free (cmd);
g_free (pubkey_basename);
g_free (new_pubkey_filename);
- g_free (oltap_path);
printf ("--- RPM-builder: returned %d.\n", exit_status);
// e.g. RPMS/noarch/openvas-lsc-target-example_user-0.5-1.noarch.rpm
More information about the Openvas-commits
mailing list