Project

General

Profile

Bug #242

Fix dummy use of prelude_init()

Added by almost 14 years ago. Updated almost 12 years ago.

Status:
Closed
Priority:
Normal
Target version:
Start date:
Due date:
% Done:

0%

Resolution:
fixed

Description

In my plugin, I don't have argc and argv. So I used argc=0 and argv=NULL. It looks ok but Prelude use argvr0 to set client analyzer path:

        ret = fill_client_infos(client, _prelude_internal_argvr0);
        if ( ret < 0 )
            return handle_client_error(client, ret);

I see that fill_client_infos() accept NULL program so I wrote a small patch to fix it.

(A better solution is to call prelude_init() with the right arguments :-))

prelude-client-argv.patch View - untested patch! (5.56 KB) , 06/29/2007 05:34 PM

History

#1 Updated by Yoann VANDOORSELAERE almost 14 years ago

  • Status changed from New to Closed
  • Resolution set to fixed

(In r9671) Always re-initialize prelude_internal(argc|argv) on prelude_init().
Additionally, handle the case where argc is 0.

Fix #242.

#2 Updated by Yoann VANDOORSELAERE almost 12 years ago

  • Project changed from PRELUDE SIEM to Libprelude
  • Category deleted (generic)
  • Target version deleted (0.9.15)

Also available in: Atom PDF