@ -1,4 +1,4 @@
/* Copyright (C) 2007-20 10 Open Information Security Foundation
/* Copyright (C) 2007-20 23 Open Information Security Foundation
*
*
* You can copy , redistribute or modify this Program under the terms of
* You can copy , redistribute or modify this Program under the terms of
* the GNU General Public License version 2 as published by the Free
* the GNU General Public License version 2 as published by the Free
@ -302,35 +302,40 @@ ConfYamlParse(yaml_parser_t *parser, ConfNode *parent, int inseq, int rlevel)
Mangle ( parent - > val ) ;
Mangle ( parent - > val ) ;
}
}
}
}
ConfNode * existing = ConfNodeLookupChild ( parent , value ) ;
if ( existing ! = NULL ) {
if ( strchr ( value , ' . ' ) ! = NULL ) {
if ( ! existing - > final ) {
node = ConfNodeGetNodeOrCreate ( parent , value , 0 ) ;
SCLogInfo ( " Configuration node '%s' redefined. " ,
} else {
existing - > name ) ;
ConfNode * existing = ConfNodeLookupChild ( parent , value ) ;
ConfNodePrune ( existing ) ;
if ( existing ! = NULL ) {
}
if ( ! existing - > final ) {
node = existing ;
SCLogInfo ( " Configuration node '%s' redefined. " , existing - > name ) ;
}
ConfNodePrune ( existing ) ;
else {
}
node = ConfNodeNew ( ) ;
node = existing ;
node - > name = SCStrdup ( value ) ;
} else {
if ( node - > name & & strchr ( node - > name , ' _ ' ) ) {
node = ConfNodeNew ( ) ;
if ( ! ( parent - > name & &
node - > name = SCStrdup ( value ) ;
( ( strcmp ( parent - > name , " address-groups " ) = = 0 ) | |
if ( node - > name & & strchr ( node - > name , ' _ ' ) ) {
( strcmp ( parent - > name , " port-groups " ) = = 0 ) ) ) ) {
if ( ! ( parent - > name & &
Mangle ( node - > name ) ;
( ( strcmp ( parent - > name , " address-groups " ) = = 0 ) | |
if ( mangle_errors < MANGLE_ERRORS_MAX ) {
( strcmp ( parent - > name , " port-groups " ) = = 0 ) ) ) ) {
SCLogWarning ( " %s is deprecated. Please use %s on line % " PRIuMAX
Mangle ( node - > name ) ;
" . " ,
if ( mangle_errors < MANGLE_ERRORS_MAX ) {
value , node - > name , ( uintmax_t ) parser - > mark . line + 1 ) ;
SCLogWarning (
mangle_errors + + ;
" %s is deprecated. Please use %s on line % " PRIuMAX
if ( mangle_errors > = MANGLE_ERRORS_MAX )
" . " ,
SCLogWarning ( " not showing more "
value , node - > name ,
" parameter name warnings. " ) ;
( uintmax_t ) parser - > mark . line + 1 ) ;
mangle_errors + + ;
if ( mangle_errors > = MANGLE_ERRORS_MAX )
SCLogWarning ( " not showing more "
" parameter name warnings. " ) ;
}
}
}
}
}
TAILQ_INSERT_TAIL ( & parent - > head , node , next ) ;
}
}
TAILQ_INSERT_TAIL ( & parent - > head , node , next ) ;
}
}
state = CONF_VAL ;
state = CONF_VAL ;
}
}