projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Followup on RT3334 fix: make sure that a directory that's the empty
[openssl.git]
/
crypto
/
LPdir_win.c
diff --git
a/crypto/LPdir_win.c
b/crypto/LPdir_win.c
index 5cdcd001a71eacfaee7f09b89584f457ead08142..d5b5e2c900db9ea56522a75a49972213c01a741b 100644
(file)
--- a/
crypto/LPdir_win.c
+++ b/
crypto/LPdir_win.c
@@
-66,6
+66,12
@@
const char *LP_find_file(LP_DIR_CTX **ctx, const char *directory)
char *extdirbuf = NULL;
size_t dirlen = strlen (directory);
+ if (dirlen == 0)
+ {
+ errno = ENOENT;
+ return 0;
+ }
+
*ctx = (LP_DIR_CTX *)malloc(sizeof(LP_DIR_CTX));
if (*ctx == NULL)
{