Skip to content

Commit 782d1a5

Browse files
czp182alandekok
authored andcommitted
typo
(rlm_python: fix wrong variable 'index' in py_freeradius_build_parents error message 341)
1 parent 29b02bb commit 782d1a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/modules/rlm_python/rlm_python.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,7 @@ static fr_pair_t *py_freeradius_build_parents(PyObject *obj)
637637
if (obj_pair->idx > 0) {
638638
unsigned int count = fr_pair_count_by_da(&parent->vp_group, obj_pair->da);
639639
if (count < obj_pair->idx) {
640-
PyErr_Format(PyExc_AttributeError, "Attempt to set instance %d when only %d exist", index, count);
640+
PyErr_Format(PyExc_AttributeError, "Attempt to set instance %d when only %d exist", obj_pair->idx, count);
641641
return NULL;
642642
}
643643
}

0 commit comments

Comments
 (0)