summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/smbd/dir.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/dir.c b/source3/smbd/dir.c
index e022d26ea3..2a5f7ffd71 100644
--- a/source3/smbd/dir.c
+++ b/source3/smbd/dir.c
@@ -1063,8 +1063,8 @@ char *DirCacheCheck( const char *path, const char *name, int snum )
NULL != entry;
entry = (dir_cache_entry *)ubi_dlNext( entry ) ) {
if( entry->snum == snum
- && 0 == strcmp( name, entry->name )
- && 0 == strcmp( path, entry->path ) ) {
+ && entry->name && 0 == strcmp( name, entry->name )
+ && entry->path && 0 == strcmp( path, entry->path ) ) {
DEBUG(4, ("Got dir cache hit on %s %s -> %s\n",path,name,entry->dname));
return( entry->dname );
}