[Devel] register_script_cb problems?

Ingo Wolfsberger iwolfsberger at gmx.net
Sun Jun 19 06:37:56 CEST 2005


Hi

When I start my HEAD openser proxy, I get:
BUG:register_script_cb: REQUEST or REPLY type not specified

Function modules/sl/sl.c calls it wrong?
register_script_cb( sl_filter_ACK, PRE_SCRIPT_CB, 0 );

And in script_cb.c:
register_scrbt_cb function:
        if (type&REQ_TYPE_CB) {
                /* callback for request script */
                if (type&PRE_SCRIPT_CB) {
                        if (add_callback( &pre_req_cb, f, param)<0)
                                goto add_error;
                } else if (type&POST_SCRIPT_CB) {
                        if (add_callback( &post_req_cb, f, param)<0)
                                goto add_error;
                }
        }
        if (type&REQ_TYPE_CB) {
                /* callback (also) for reply script */
                if (type&PRE_SCRIPT_CB) {
                        if (add_callback( &pre_rpl_cb, f, param)<0)
                                goto add_error;
                } else if (type&POST_SCRIPT_CB) {
                        if (add_callback( &post_rpl_cb, f, param)<0)
                                goto add_error;
                }
        }

That are 2 times the same if?
Or should the second be:
if(type&RPL_TYPE_CB) {
?

bye,
   Ingo

-- 
Geschenkt: 3 Monate GMX ProMail gratis + 3 Ausgaben stern gratis
++ Jetzt anmelden & testen ++ http://www.gmx.net/de/go/promail ++



More information about the Devel mailing list