hdb: hdb_add_aliases frees uninitialized memory
This bug was never shipped in a release.  It was introduced by commit
1c81ddf4e2.
Change-Id: Ia9f6d69b2858a75cc51e50034fe70e29f13b8fc1
			
			
This commit is contained in:
		@@ -254,10 +254,9 @@ hdb_add_aliases(krb5_context context, HDB *db,
 | 
			
		||||
	entryalias.principal = entry->entry.principal;
 | 
			
		||||
 | 
			
		||||
	code = hdb_entry_alias2value(context, &entryalias, &value);
 | 
			
		||||
	if (code) {
 | 
			
		||||
	    krb5_data_free(&key);
 | 
			
		||||
	if (code)
 | 
			
		||||
	    return code;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	code = hdb_principal2key(context, &aliases->aliases.val[i], &key);
 | 
			
		||||
        if (code == 0) {
 | 
			
		||||
            code = db->hdb__put(context, db, flags, key, value);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user