Changeset 290 for trunk/src/sh_prelude.c
- Timestamp:
- Aug 15, 2010, 12:27:47 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/sh_prelude.c
r283 r290 705 705 #if defined(SH_WITH_SERVER) 706 706 /* when using yule, theres a msg=<... msg=<...> >*/ 707 do { 708 msg = ptr; 709 ptr = get_value(msg, _("msg"), NULL); 710 if ( ! ptr ) { 711 ptr = msg; 712 break; 713 } else { 714 free(msg); 715 } 716 } while (1); 707 while ( (msg = get_value(ptr, _("msg"), NULL)) ) { 708 free(ptr); 709 ptr = msg; 710 } 717 711 #endif 718 712 … … 1231 1225 if ( inet_peer_ip != NULL){ 1232 1226 ret = idmef_target_new_node(target, &node); 1227 if ( ret < 0 ) 1228 goto err; 1233 1229 1234 1230 ret = node_set_address(node, inet_peer_ip); … … 1239 1235 } 1240 1236 else 1237 #endif 1241 1238 if ( idmef_analyzer_get_node(prelude_client_get_analyzer(client)) ) { 1242 1239 idmef_node_ref(idmef_analyzer_get_node(prelude_client_get_analyzer(client))); 1243 1240 idmef_target_set_node(target, idmef_analyzer_get_node(prelude_client_get_analyzer(client))); 1244 1241 } 1245 #else 1246 if ( idmef_analyzer_get_node(prelude_client_get_analyzer(client)) ) { 1247 idmef_node_ref(idmef_analyzer_get_node(prelude_client_get_analyzer(client))); 1248 idmef_target_set_node(target, idmef_analyzer_get_node(prelude_client_get_analyzer(client))); 1249 } 1250 #endif 1242 1251 1243 if ( strstr(message, _("path=")) ) { 1252 1244 #if defined(SH_WITH_CLIENT) || defined(SH_STANDALONE)
Note:
See TracChangeset
for help on using the changeset viewer.