diff options
author | Gerald Carter <jerry@samba.org> | 2003-02-27 21:37:54 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2003-02-27 21:37:54 +0000 |
commit | dc1cd583cb4224f0fdb8c4529b59a66eeddba2f9 (patch) | |
tree | b4f24a67ff5810f05b35f961b8b3dddf2907d547 /source3/smbd | |
parent | 97e7d2ffae74c9c07b38143c8fb028ee91b153bd (diff) | |
download | samba-dc1cd583cb4224f0fdb8c4529b59a66eeddba2f9.tar.gz samba-dc1cd583cb4224f0fdb8c4529b59a66eeddba2f9.tar.bz2 samba-dc1cd583cb4224f0fdb8c4529b59a66eeddba2f9.zip |
don't pass NULL pointers to strcmp()
(This used to be commit 6631984b12a3f74b93f7031c433dd81d6586a5df)
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/dir.c | 4 |
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 ); } |