1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-29 16:23:52 +03:00

r19754: * When using a krb5 session setup, we don't fill in the server_name

string the clis_state struct.  So call saf_store() after we
  have the short domain name in the lsa_query_inof_policy code.

* Remove unused server string in saf_delete()
This commit is contained in:
Gerald Carter
2006-11-16 23:48:46 +00:00
committed by Gerald (Jerry) Carter
parent 85d8c73fbb
commit 3eddae2f20
5 changed files with 37 additions and 40 deletions

View File

@@ -15,8 +15,7 @@
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include "includes.h"
@@ -24,7 +23,6 @@
/* nmbd.c sets this to True. */
BOOL global_in_nmbd = False;
/****************************
* SERVER AFFINITY ROUTINES *
****************************/
@@ -82,13 +80,13 @@ BOOL saf_store( const char *domain, const char *servername )
return ret;
}
BOOL saf_delete( const char *domain, const char *servername )
BOOL saf_delete( const char *domain )
{
char *key;
BOOL ret = False;
if ( !domain || !servername ) {
DEBUG(2,("saf_delete: Refusing to store empty domain or servername!\n"));
if ( !domain ) {
DEBUG(2,("saf_delete: Refusing to delete empty domain\n"));
return False;
}
@@ -99,10 +97,11 @@ BOOL saf_delete( const char *domain, const char *servername )
ret = gencache_del(key);
if (ret) {
DEBUG(10,("saf_delete: domain = [%s], server = [%s]\n",
domain, servername));
DEBUG(10,("saf_delete: domain = [%s]\n", domain ));
}
SAFE_FREE( key );
return ret;
}