Skip to content

Commit fe52a65

Browse files
committed
Update yara submodule and stop using deprecated fields.
1 parent 53208e0 commit fe52a65

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

yara-python.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1320,7 +1320,7 @@ static PyObject* Rules_next(
13201320

13211321
if (RULE_IS_NULL(rules->iter_current_rule))
13221322
{
1323-
rules->iter_current_rule = rules->rules->rules_list_head;
1323+
rules->iter_current_rule = rules->rules->rules_table;
13241324
PyErr_SetNone(PyExc_StopIteration);
13251325
return NULL;
13261326
}
@@ -2172,7 +2172,7 @@ static PyObject* yara_compile(
21722172
if (error == ERROR_SUCCESS)
21732173
{
21742174
rules->rules = yara_rules;
2175-
rules->iter_current_rule = rules->rules->rules_list_head;
2175+
rules->iter_current_rule = rules->rules->rules_table;
21762176

21772177
if (externals != NULL && externals != Py_None)
21782178
rules->externals = PyDict_Copy(externals);
@@ -2273,8 +2273,8 @@ static PyObject* yara_load(
22732273
"load() expects either a file path or a file-like object");
22742274
}
22752275

2276-
external = rules->rules->externals_list_head;
2277-
rules->iter_current_rule = rules->rules->rules_list_head;
2276+
external = rules->rules->ext_vars_table;
2277+
rules->iter_current_rule = rules->rules->rules_table;
22782278

22792279
if (!EXTERNAL_VARIABLE_IS_NULL(external))
22802280
rules->externals = PyDict_New();

0 commit comments

Comments
 (0)