Project

General

Profile

Bug #18 ยป 0001-fixed-bug-18.patch

Gurvinder Singh, 12/27/2009 07:56 AM

View differences:

src/suricata.c
/* Load yaml configuration file if provided. */
if (conf_filename != NULL) {
ConfYamlLoadFile(conf_filename);
} else {
SCLogError(SC_ERR_OPENING_FILE, "Configuration file has not been provided");
}
if (dump_config) {
......
LogFileCtx *au2a_logfile_ctx = Unified2AlertInitCtx(NULL);
if (SigLoadSignatures(de_ctx, sig_file) < 0) {
SCLogError(SC_ERR_NO_RULES_LOADED, "Loading signatures failed.\n");
if (sig_file == NULL) {
SCLogError(SC_ERR_OPENING_FILE, "Signature file has not been provided");
} else {
SCLogError(SC_ERR_NO_RULES_LOADED, "Loading signatures failed.");
}
}
struct timeval start_time;
src/util-hashlist.c
}
void *HashListTableLookup(HashListTable *ht, void *data, uint16_t datalen) {
if (ht == NULL) {
SCLogDebug("Hash List table is NULL");
return NULL;
}
uint32_t hash = ht->Hash(ht, data, datalen);
if (ht->array[hash] == NULL) {
    (1-1/1)