Generate an error on an invalid directory.
This commit is contained in:
parent
f6aed2cda6
commit
2c1ef383ae
2 changed files with 10 additions and 1 deletions
5
CHANGES
5
CHANGES
|
@ -5,6 +5,11 @@
|
||||||
|
|
||||||
Changes between 0.9.1c and 0.9.2
|
Changes between 0.9.1c and 0.9.2
|
||||||
|
|
||||||
|
*) Generate an error if given an empty string as a cert directory. Also
|
||||||
|
generate an error if handed NULL (previously returned 0 to indicate an
|
||||||
|
error, but didn't set one).
|
||||||
|
[Ben Laurie, reported by Anonymous <nobody@replay.com>]
|
||||||
|
|
||||||
*) Add prototypes to SSL methods. Make SSL_write's buffer const, at last.
|
*) Add prototypes to SSL methods. Make SSL_write's buffer const, at last.
|
||||||
[Ben Laurie]
|
[Ben Laurie]
|
||||||
|
|
||||||
|
|
|
@ -192,7 +192,11 @@ int type;
|
||||||
char *s,*ss,*p;
|
char *s,*ss,*p;
|
||||||
char **pp;
|
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;
|
s=dir;
|
||||||
p=s;
|
p=s;
|
||||||
|
|
Loading…
Reference in a new issue