diff options
author | Gerald Carter <jerry@samba.org> | 2003-02-27 21:37:30 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2003-02-27 21:37:30 +0000 |
commit | 1738f7c2b7b0d2bdfa6414267d20b2c08e204f78 (patch) | |
tree | 9c5893ea4d4ec774c75f7b9597852b2987523fc8 /source3 | |
parent | 0d30cdf66c4e186e20a09e1e8b39d501e662ae50 (diff) | |
download | samba-1738f7c2b7b0d2bdfa6414267d20b2c08e204f78.tar.gz samba-1738f7c2b7b0d2bdfa6414267d20b2c08e204f78.tar.bz2 samba-1738f7c2b7b0d2bdfa6414267d20b2c08e204f78.zip |
don't pass NULL pointers to strcmp()
(This used to be commit 9b0a49a0bc177f9637f197b3ab4613f25db1b43d)
Diffstat (limited to 'source3')
-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 ); } |