svn commit: samba r19652 - in branches/SAMBA_3_0/source/libsmb: .
gd at samba.org
gd at samba.org
Fri Nov 10 13:46:19 GMT 2006
Author: gd
Date: 2006-11-10 13:46:19 +0000 (Fri, 10 Nov 2006)
New Revision: 19652
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=19652
Log:
Trying to track down which caller tries to store a 0 length domain name
in the affinity cache (which happens all the time here).
Guenther
Modified:
branches/SAMBA_3_0/source/libsmb/namequery.c
Changeset:
Modified: branches/SAMBA_3_0/source/libsmb/namequery.c
===================================================================
--- branches/SAMBA_3_0/source/libsmb/namequery.c 2006-11-10 12:42:50 UTC (rev 19651)
+++ branches/SAMBA_3_0/source/libsmb/namequery.c 2006-11-10 13:46:19 UTC (rev 19652)
@@ -59,6 +59,11 @@
DEBUG(2,("saf_store: Refusing to store empty domain or servername!\n"));
return False;
}
+
+ if ( (strlen(domain) == 0) || (strlen(servername) == 0) ) {
+ DEBUG(0,("saf_store: refusing to store 0 length domain or servername!\n"));
+ return False;
+ }
if ( !gencache_init() )
return False;
@@ -111,7 +116,7 @@
BOOL ret = False;
char *key = NULL;
- if ( !domain ) {
+ if ( !domain || strlen(domain) == 0) {
DEBUG(2,("saf_fetch: Empty domain name!\n"));
return NULL;
}
More information about the samba-cvs
mailing list