Mailing List Archive

Re: nessus-libraries/libnessus store.c, 1.28.2.5, 1.28.2.6
Hi,

This commit happened only to NESSUS_2_2 branch.

I must admit I do not fully understand what it fixes,
but probably it should be applied to HEAD as well?

For convenience I attached a diff between the
current store.c in NESSUS_2_2 and in HEAD.

Best

Jan

On Tue, Jul 05, 2005 at 11:14:51AM -0400, renaud@nessus.org wrote:
> Update of /usr/local/cvs/nessus-libraries/libnessus
> In directory raccoon.nessus.org:/tmp/cvs-serv15549
>
> Modified Files:
> Tag: NESSUS_2_2
> store.c
> Log Message:
> fixes
>
> Index: store.c
> ===================================================================
> RCS file: /usr/local/cvs/nessus-libraries/libnessus/store.c,v
> retrieving revision 1.28.2.5
> retrieving revision 1.28.2.6
> diff -u -d -r1.28.2.5 -r1.28.2.6
> --- store.c 28 Jun 2005 22:39:58 -0000 1.28.2.5
> +++ store.c 5 Jul 2005 15:14:49 -0000 1.28.2.6
> @@ -286,6 +286,7 @@
> plug_set_category(ret, p.category);
> plug_set_fname(ret, file);
> plug_set_path(ret, p.path);
> + plug_set_family(ret, p.family, NULL);
>
> al = str2arglist(p.required_ports);
> if ( al != NULL ) arg_add_value(ret, "required_ports", ARG_ARGLIST, -1, al);
> @@ -523,18 +524,10 @@
> close(fd);
>
>
> -#if 0
> - ret = emalloc(sizeof(struct arglist));
> - plug_set_id(ret, _plug_get_id(plugin));
> - plug_set_category(ret, _plug_get_category(plugin));
> - plug_set_fname(ret, file);
> - plug_set_path(ret, path);
> - plug_set_name(ret, name);
> - arg_add_value(ret, "preferences", ARG_ARGLIST, -1, arg_get_value(plugin, "preferences"));
> +
> arg_set_value(plugin, "preferences", -1, NULL);
> arg_free_all(plugin);
> -#endif
> - return plugin;
> + return NULL;
> }
>
>
>
> _______________________________________________
> Nessus-cvs mailing list
> Nessus-cvs@list.nessus.org
> http://mail.nessus.org/mailman/listinfo/nessus-cvs

--
Jan-Oliver Wagner http://intevation.de/~jan/
Intevation GmbH http://intevation.de/
Kolab Konsortium http://kolab-konsortium.de/
FreeGIS http://freegis.org/