Fix dummy use of prelude_init()
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 :-))
#1 Updated by Yoann VANDOORSELAERE almost 16 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.
#2 Updated by Yoann VANDOORSELAERE about 14 years ago
- Project changed from PRELUDE SIEM to Libprelude
- Category deleted (
- Target version deleted (