Loading crypto/err/err.c +12 −0 Original line number Diff line number Diff line Loading @@ -378,6 +378,8 @@ void ERR_put_error(int lib, int func, int reason, const char *file, int line) } #endif es = ERR_get_state(); if (es == NULL) return; es->top = (es->top + 1) % ERR_NUM_ERRORS; if (es->top == es->bottom) Loading @@ -395,6 +397,8 @@ void ERR_clear_error(void) ERR_STATE *es; es = ERR_get_state(); if (es == NULL) return; for (i = 0; i < ERR_NUM_ERRORS; i++) { err_clear(es, i); Loading Loading @@ -459,6 +463,8 @@ static unsigned long get_error_values(int inc, int top, const char **file, unsigned long ret; es = ERR_get_state(); if (es == NULL) return 0; if (inc && top) { if (file) Loading Loading @@ -709,6 +715,8 @@ void ERR_set_error_data(char *data, int flags) int i; es = ERR_get_state(); if (es == NULL) return; i = es->top; if (i == 0) Loading Loading @@ -764,6 +772,8 @@ int ERR_set_mark(void) ERR_STATE *es; es = ERR_get_state(); if (es == NULL) return 0; if (es->bottom == es->top) return 0; Loading @@ -776,6 +786,8 @@ int ERR_pop_to_mark(void) ERR_STATE *es; es = ERR_get_state(); if (es == NULL) return 0; while (es->bottom != es->top && (es->err_flags[es->top] & ERR_FLAG_MARK) == 0) { Loading Loading
crypto/err/err.c +12 −0 Original line number Diff line number Diff line Loading @@ -378,6 +378,8 @@ void ERR_put_error(int lib, int func, int reason, const char *file, int line) } #endif es = ERR_get_state(); if (es == NULL) return; es->top = (es->top + 1) % ERR_NUM_ERRORS; if (es->top == es->bottom) Loading @@ -395,6 +397,8 @@ void ERR_clear_error(void) ERR_STATE *es; es = ERR_get_state(); if (es == NULL) return; for (i = 0; i < ERR_NUM_ERRORS; i++) { err_clear(es, i); Loading Loading @@ -459,6 +463,8 @@ static unsigned long get_error_values(int inc, int top, const char **file, unsigned long ret; es = ERR_get_state(); if (es == NULL) return 0; if (inc && top) { if (file) Loading Loading @@ -709,6 +715,8 @@ void ERR_set_error_data(char *data, int flags) int i; es = ERR_get_state(); if (es == NULL) return; i = es->top; if (i == 0) Loading Loading @@ -764,6 +772,8 @@ int ERR_set_mark(void) ERR_STATE *es; es = ERR_get_state(); if (es == NULL) return 0; if (es->bottom == es->top) return 0; Loading @@ -776,6 +786,8 @@ int ERR_pop_to_mark(void) ERR_STATE *es; es = ERR_get_state(); if (es == NULL) return 0; while (es->bottom != es->top && (es->err_flags[es->top] & ERR_FLAG_MARK) == 0) { Loading