aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/x509/by_dir.c
diff options
context:
space:
mode:
authorBen Laurie <ben@openssl.org>1999-01-17 14:10:08 +0000
committerBen Laurie <ben@openssl.org>1999-01-17 14:10:08 +0000
commit2c1ef383aef7dd7bb419dfcc5554b42facff707e (patch)
tree40fe6ba28425ccddfe7a9808bded0100d0bdf1cb /crypto/x509/by_dir.c
parentf6aed2cda608d6291225030fc259f207aac33732 (diff)
downloadopenssl-2c1ef383aef7dd7bb419dfcc5554b42facff707e.tar.gz
Generate an error on an invalid directory.
Diffstat (limited to 'crypto/x509/by_dir.c')
-rw-r--r--crypto/x509/by_dir.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/crypto/x509/by_dir.c b/crypto/x509/by_dir.c
index 11725ec94c..ee47582b00 100644
--- a/crypto/x509/by_dir.c
+++ b/crypto/x509/by_dir.c
@@ -192,7 +192,11 @@ int type;
char *s,*ss,*p;
char **pp;
- if (dir == NULL) return(0);
+ if (dir == NULL || !*dir)
+ {
+ X509err(X509_F_ADD_CERT_DIR,X509_R_INVALID_DIRECTORY);
+ return 0;
+ }
s=dir;
p=s;