aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/dso
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2005-06-09 17:28:53 +0000
committerRichard Levitte <levitte@openssl.org>2005-06-09 17:28:53 +0000
commit13e393607b23fd47e4d2dbba2188356062fd2a27 (patch)
treef727ef8b07de4c2b7dcf00db96c09bdb79148ce9 /crypto/dso
parent052ec899279e36359bb0f554732cec5551cf30ea (diff)
downloadopenssl-13e393607b23fd47e4d2dbba2188356062fd2a27.tar.gz
When the return type of the function is int, it's better to return an
in than NULL, especially when an error is signalled with a negative value.
Diffstat (limited to 'crypto/dso')
-rw-r--r--crypto/dso/dso_lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/dso/dso_lib.c b/crypto/dso/dso_lib.c
index 0869a646f6..12ad097a28 100644
--- a/crypto/dso/dso_lib.c
+++ b/crypto/dso/dso_lib.c
@@ -472,7 +472,7 @@ int DSO_pathbyaddr(void *addr,char *path,int sz)
if (meth->pathbyaddr == NULL)
{
DSOerr(DSO_F_PATHBYADDR,DSO_R_UNSUPPORTED);
- return(NULL);
+ return -1;
}
return (*meth->pathbyaddr)(addr,path,sz);
}