diff options
Diffstat (limited to 'src/lib/libcrypto/err/err_prn.c')
-rw-r--r-- | src/lib/libcrypto/err/err_prn.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/err/err_prn.c b/src/lib/libcrypto/err/err_prn.c index 6a3062a89a..48166829d4 100644 --- a/src/lib/libcrypto/err/err_prn.c +++ b/src/lib/libcrypto/err/err_prn.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: err_prn.c,v 1.17 2017/02/07 03:11:11 beck Exp $ */ | 1 | /* $OpenBSD: err_prn.c,v 1.18 2017/02/07 15:52:33 jsing Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -80,8 +80,8 @@ ERR_print_errors_cb(int (*cb)(const char *str, size_t len, void *u), void *u) | |||
80 | while ((l = ERR_get_error_line_data(&file, &line, &data, | 80 | while ((l = ERR_get_error_line_data(&file, &line, &data, |
81 | &flags)) != 0) { | 81 | &flags)) != 0) { |
82 | ERR_error_string_n(l, buf, sizeof buf); | 82 | ERR_error_string_n(l, buf, sizeof buf); |
83 | (void) snprintf(buf2, sizeof(buf2), "%lu:%s:%s\n", es, | 83 | (void) snprintf(buf2, sizeof(buf2), "%lu:%s:%s:%d:%s\n", es, |
84 | buf, (flags & ERR_TXT_STRING) ? data : ""); | 84 | buf, file, line, (flags & ERR_TXT_STRING) ? data : ""); |
85 | if (cb(buf2, strlen(buf2), u) <= 0) | 85 | if (cb(buf2, strlen(buf2), u) <= 0) |
86 | break; /* abort outputting the error report */ | 86 | break; /* abort outputting the error report */ |
87 | } | 87 | } |