diff options
author | Ben Laurie <ben@openssl.org> | 1999-01-17 14:10:08 +0000 |
---|---|---|
committer | Ben Laurie <ben@openssl.org> | 1999-01-17 14:10:08 +0000 |
commit | 2c1ef383aef7dd7bb419dfcc5554b42facff707e (patch) | |
tree | 40fe6ba28425ccddfe7a9808bded0100d0bdf1cb /crypto/x509/by_dir.c | |
parent | f6aed2cda608d6291225030fc259f207aac33732 (diff) | |
download | openssl-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.c | 6 |
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; |