summaryrefslogtreecommitdiffstats
path: root/source/smbd
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2003-02-27 21:37:30 +0000
committerGerald Carter <jerry@samba.org>2003-02-27 21:37:30 +0000
commit9b0a49a0bc177f9637f197b3ab4613f25db1b43d (patch)
tree92c7a5ec4e94f7b3ab30f979e033fdc3322d99b5 /source/smbd
parentc7712fa054d21b4884a78b7ea6c0fb8b3d637c6b (diff)
downloadsamba-9b0a49a0bc177f9637f197b3ab4613f25db1b43d.tar.gz
samba-9b0a49a0bc177f9637f197b3ab4613f25db1b43d.tar.xz
samba-9b0a49a0bc177f9637f197b3ab4613f25db1b43d.zip
don't pass NULL pointers to strcmp()
Diffstat (limited to 'source/smbd')
-rw-r--r--source/smbd/dir.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/smbd/dir.c b/source/smbd/dir.c
index e022d26ea3c..2a5f7ffd71a 100644
--- a/source/smbd/dir.c
+++ b/source/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 );
}