summaryrefslogtreecommitdiffstats
path: root/crypto/err
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2005-04-12 13:31:14 +0000
committerDr. Stephen Henson <steve@openssl.org>2005-04-12 13:31:14 +0000
commitbc3cae7e7d1dd82b8b16d9bb63f754899e26b7ca (patch)
tree2d9ddcd611a098d49f779254128e78c52cbc5a26 /crypto/err
parent37942fab51409ccb7f1cc9d67e7014c30eeb5343 (diff)
Include error library value in C error source files instead of fixing up
at runtime.
Diffstat (limited to 'crypto/err')
-rw-r--r--crypto/err/err.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/crypto/err/err.c b/crypto/err/err.c
index 1d186a7b9b..549229bcfb 100644
--- a/crypto/err/err.c
+++ b/crypto/err/err.c
@@ -631,7 +631,8 @@ static void err_load_strings(int lib, ERR_STRING_DATA *str)
{
while (str->error)
{
- str->error|=ERR_PACK(lib,0,0);
+ if (lib)
+ str->error|=ERR_PACK(lib,0,0);
ERRFN(err_set_item)(str);
str++;
}
@@ -647,7 +648,8 @@ void ERR_unload_strings(int lib, ERR_STRING_DATA *str)
{
while (str->error)
{
- str->error|=ERR_PACK(lib,0,0);
+ if (lib)
+ str->error|=ERR_PACK(lib,0,0);
ERRFN(err_del_item)(str);
str++;
}