read dead code, cid#5
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@24132 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
		
							
								
								
									
										12
									
								
								kcm/cache.c
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								kcm/cache.c
									
									
									
									
									
								
							@@ -182,17 +182,8 @@ kcm_ccache_alloc(krb5_context context,
 | 
			
		||||
	goto out;
 | 
			
		||||
 | 
			
		||||
    /*
 | 
			
		||||
     * Then try and find an empty slot
 | 
			
		||||
     * XXX we need to recycle slots for this to actually do anything
 | 
			
		||||
     * Create an enpty slot for us.
 | 
			
		||||
     */
 | 
			
		||||
    if (slot == NULL) {
 | 
			
		||||
	for (; p != NULL; p = p->next) {
 | 
			
		||||
	    if ((p->flags & KCM_FLAGS_VALID) == 0) {
 | 
			
		||||
		slot = p;
 | 
			
		||||
		break;
 | 
			
		||||
	    }
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
    if (slot == NULL) {
 | 
			
		||||
	slot = (kcm_ccache_data *)malloc(sizeof(*slot));
 | 
			
		||||
	if (slot == NULL) {
 | 
			
		||||
@@ -203,7 +194,6 @@ kcm_ccache_alloc(krb5_context context,
 | 
			
		||||
	HEIMDAL_MUTEX_init(&slot->mutex);
 | 
			
		||||
	new_slot = 1;
 | 
			
		||||
    }
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    slot->name = strdup(name);
 | 
			
		||||
    if (slot->name == NULL) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user