Changeset 342


Ignore:
Timestamp:
May 11, 2011, 11:04:08 PM (14 years ago)
Author:
katerina
Message:

Fix for ticket #251:Compile error if option --with-prelude is used

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/docs/Changelog

    r341 r342  
    112.8.4a:
    2         * Fix for compile error with --enable-udp (reported by Sean Chittenden)
     2        * Fix for compile error with --with-prelude
     3          (reported by Sean Chittenden), missing regression test added
     4        * Fix for compile error with --enable-udp (reported by Sean Chittenden),
     5          missing regression test added
    36
    472.8.4:
  • trunk/src/sh_forward.c

    r341 r342  
    36153615                  {
    36163616                    char peer_ip[SH_IP_BUF];
    3617                     sh_ipvx_ntoa(peer_ip, sizeof(peer_ip), conn->addr_peer);
     3617                    sh_ipvx_ntoa(peer_ip, sizeof(peer_ip), &(conn->addr_peer));
    36183618                    sh_error_set_peer_ip( peer_ip );
    36193619                  }                       
  • trunk/src/sh_prelude.c

    r290 r342  
    11411141}
    11421142
    1143 
     1143#if defined(SH_WITH_SERVER)
    11441144static int node_set_address(idmef_node_t *node, const char *addr)
    11451145{
     
    11681168        return -1;
    11691169}
    1170 
     1170#endif
    11711171                                         
    11721172
    11731173static int samhain_alert_prelude(int priority, int sh_class,
    1174                                  char *message, unsigned long msgid, char * inet_peer_ip)
     1174                                 char *message, unsigned long msgid,
     1175                                 char * inet_peer_ip)
    11751176{
    11761177        int ret;
     
    11871188#if defined(SH_WITH_SERVER)
    11881189        idmef_node_t *node;
     1190#else
     1191        (void) inet_peer_ip;
    11891192#endif
    11901193               
  • trunk/test/testcompile.sh

    r341 r342  
    2121
    2222# dnmalloc + flawfinder + (36 * 3)
    23 MAXTEST=110; export MAXTEST
     23MAXTEST=116; export MAXTEST
    2424
    2525run_dnmalloc ()
     
    685685
    686686        #
     687        # test client/server compilation w/prelude
     688        #
     689        TEST="${S}client/server application w/prelude${E}"
     690        #
     691        if [ -z "$doall" ]; then
     692            let "num = num + 1" >/dev/null
     693            [ -z "$quiet" ] && log_skip $2 ${MAXTEST} "$TEST";
     694            let "num = num + 1" >/dev/null
     695            [ -z "$quiet" ] && log_skip $2 ${MAXTEST} "$TEST (smatch)";
     696            let "num = num + 1" >/dev/null
     697            [ -z "$quiet" ] && log_skip $2 ${MAXTEST} "$TEST (uno)";
     698
     699            let "num = num + 1" >/dev/null
     700            [ -z "$quiet" ] && log_skip $2 ${MAXTEST} "$TEST";
     701            let "num = num + 1" >/dev/null
     702            [ -z "$quiet" ] && log_skip $2 ${MAXTEST} "$TEST (smatch)";
     703            let "num = num + 1" >/dev/null
     704            [ -z "$quiet" ] && log_skip $2 ${MAXTEST} "$TEST (uno)";
     705        else
     706            if test -r "Makefile"; then
     707                $MAKE clean
     708            fi
     709            #
     710            ${TOP_SRCDIR}/configure --quiet --enable-network=client  --enable-srp --prefix=$PW_DIR --localstatedir=$PW_DIR --with-config-file=$PW_DIR/samhainrc.test   --with-prelude > /dev/null 2>> test_log   
     711            #
     712            let "num = num + 1" >/dev/null
     713            testmake $? $num || let "numfail = numfail + 1" >/dev/null
     714            let "num = num + 1" >/dev/null
     715            run_smatch $? $num || let "numfail = numfail + 1"  >/dev/null
     716            let "num = num + 1" >/dev/null
     717            run_uno $? $num || let "numfail = numfail + 1"  >/dev/null
     718           
     719            if test -r "Makefile"; then
     720                $MAKE clean
     721            fi
     722            #
     723            ${TOP_SRCDIR}/configure --quiet --enable-network=server  --enable-srp --prefix=$PW_DIR --localstatedir=$PW_DIR --with-config-file=$PW_DIR/samhainrc.test   --with-prelude > /dev/null 2>> test_log   
     724            #
     725            let "num = num + 1" >/dev/null
     726            testmake $? $num || let "numfail = numfail + 1" >/dev/null
     727            let "num = num + 1" >/dev/null
     728            run_smatch $? $num || let "numfail = numfail + 1"  >/dev/null
     729            let "num = num + 1" >/dev/null
     730            run_uno $? $num || let "numfail = numfail + 1"  >/dev/null
     731            #
     732        fi
     733
     734        #
    687735        # test client/server compilation
    688736        #
Note: See TracChangeset for help on using the changeset viewer.