[Prelude Hybrid IDS] #242: Fix dummy use of prelude_init()

"Prelude Hybrid IDS" <[email protected]>
Newsgroups gmane.comp.security.ids.prelude.devel
Message-ID <[email protected]>
#242: Fix dummy use of prelude_init()
-----------------------------------+----------------------------------------
 Reporter:  [email protected]  |       Owner:  yoann
     Type:  defect                 |      Status:  new  
 Priority:  normal                 |   Milestone:       
Component:  generic                |     Version:  0.9  
 Severity:  normal                 |    Keywords:       
-----------------------------------+----------------------------------------
 In my plugin, I don't have argc and argv. So I used argc=0 and argv=NULL.
 It looks ok but Prelude use argv[0] to set client analyzer path:
 {{{
         ret = fill_client_infos(client, _prelude_internal_argv[0]);
         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 :-))

-- 
Ticket URL: <https://trac.prelude-ids.org/ticket/242>
Prelude Hybrid IDS <http://www.prelude-ids.org>
The Prelude Hybrid Intrusion Detection System suite
_______________________________________________
Prelude-devel site list
[email protected]
http://www.prelude-ids.org/mailman/listinfo/prelude-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.