Re: [Prelude Hybrid IDS] #269: Wrong idmef_*_get_next_* python binding functions?

"Prelude Hybrid IDS" <[email protected]>
Newsgroups gmane.comp.security.ids.prelude.devel
Message-ID <[email protected]>
#269: Wrong idmef_*_get_next_* python binding functions?
------------------------------------+---------------------------------------
 Reporter:  [email protected]  |        Owner:  yoann            
     Type:  defect                  |       Status:  new              
 Priority:  normal                  |    Milestone:  Libprelude 0.9.17
Component:  libprelude              |      Version:  0.9              
 Severity:  normal                  |   Resolution:                   
 Keywords:  python binding          |  
------------------------------------+---------------------------------------
Comment (by anonymous):

 Replying to [comment:6 anonymous]:
 > Ok, the correct code is the following:
 > {{{
 > %typemap(in) idmef_source_t *object {
 >         if ( $input == Py_None )
 >                 $1 = NULL;
 >         else {
 >                 if ( SWIG_ConvertPtr($input, (void **)&$1,
 SWIGTYPE_p_idmef_source, SWIG_POINTER_EXCEPTION|0) )
 >                         return NULL;
 >         }
 > };
 > }}}
 >
 > This code works as expected, and returns None when there is no more
 source.
 >
 > Can you test it ? Thanks

 Yes, it seems to work fine.

 Ben

-- 
Ticket URL: <https://trac.prelude-ids.org/ticket/269#comment:7>
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.