summaryrefslogtreecommitdiff
path: root/source3/nmbd/nmbd_namelistdb.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2006-06-29 00:48:44 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:19:07 -0500
commitd88926f6b4c11ba60200d7a7574b14fd04ab8a8f (patch)
treecce56df5c1aaa4a4251a87a1dd089d8d30cbdbe2 /source3/nmbd/nmbd_namelistdb.c
parent124cd3c6043900be696148bb3c416f8c7c098cc9 (diff)
downloadsamba-d88926f6b4c11ba60200d7a7574b14fd04ab8a8f.tar.gz
samba-d88926f6b4c11ba60200d7a7574b14fd04ab8a8f.tar.bz2
samba-d88926f6b4c11ba60200d7a7574b14fd04ab8a8f.zip
r16665: Fix a couple of bugs I discovered now I've looked
closer at the wins server code. Firstly, it needs to do the searches on the SELF_NAMES correctly, secondly it needs to flush the in-memory cache out before returning the 1b names - else it might get duplicates returned if many 1b queries are done in quick succession. Jerry, I hate to say this but you might want to consider this for 3.0.23.... Jeremy. (This used to be commit b36b9befbbc4ac318168b7788d3722710ecbf10f)
Diffstat (limited to 'source3/nmbd/nmbd_namelistdb.c')
-rw-r--r--source3/nmbd/nmbd_namelistdb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/nmbd/nmbd_namelistdb.c b/source3/nmbd/nmbd_namelistdb.c
index fb32ce1aad..d71eb5479a 100644
--- a/source3/nmbd/nmbd_namelistdb.c
+++ b/source3/nmbd/nmbd_namelistdb.c
@@ -120,7 +120,7 @@ struct name_record *find_name_on_subnet(struct subnet_record *subrec,
if( self_only && (name_ret->data.source != SELF_NAME) && (name_ret->data.source != PERMANENT_NAME) ) {
DEBUG( 9, ( "find_name_on_subnet: on subnet %s - self name %s NOT FOUND\n",
subrec->subnet_name, nmb_namestr(nmbname) ) );
- return False;
+ return NULL;
}
DEBUG( 9, ("find_name_on_subnet: on subnet %s - found name %s source=%d\n",