]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Fix weird formatting
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 17 Dec 2020 03:16:35 +0000 (21:16 -0600)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 17 Dec 2020 03:16:35 +0000 (21:16 -0600)
src/modules/rlm_python/rlm_python.c

index 63e76b537f4e6b2992a442771d1568edc9671c65..a0466bf8cf55907698a05930164240d14698dda7 100644 (file)
@@ -219,7 +219,7 @@ static void python_error_log(const rlm_python_t *inst, request_t *request)
                PyTracebackObject *ptb = (PyTracebackObject*)p_traceback;
                size_t fnum = 0;
 
-               for(; ptb != NULL; ptb = ptb->tb_next, fnum++) {
+               while (ptb != NULL) {
                        PyFrameObject *cur_frame = ptb->tb_frame;
 
                        ROPTIONAL(RERROR, ERROR, "[%ld] %s:%d at %s()",
@@ -228,6 +228,9 @@ static void python_error_log(const rlm_python_t *inst, request_t *request)
                                PyFrame_GetLineNumber(cur_frame),
                                PyUnicode_AsUTF8(cur_frame->f_code->co_name)
                        );
+
+                       ptb = ptb->tb_next;
+                       fnum++;
                }
        }