Avoid appearance of if if else ambiguity
This commit is contained in:
		
				
					committed by
					
						
						Viktor Dukhovni
					
				
			
			
				
	
			
			
			
						parent
						
							d75e74b2d7
						
					
				
				
					commit
					6501ba7e95
				
			@@ -1130,11 +1130,12 @@ get_princ_kt(krb5_context context,
 | 
				
			|||||||
    }
 | 
					    }
 | 
				
			||||||
    if (ret != 0 || (ret = krb5_kt_end_seq_get(context, kt, &cursor)) != 0)
 | 
					    if (ret != 0 || (ret = krb5_kt_end_seq_get(context, kt, &cursor)) != 0)
 | 
				
			||||||
	krb5_err(context, 1, ret, "get_princ_kt");
 | 
						krb5_err(context, 1, ret, "get_princ_kt");
 | 
				
			||||||
    if (!*principal)
 | 
					    if (!*principal) {
 | 
				
			||||||
	if (name)
 | 
						if (name)
 | 
				
			||||||
	    parse_name_realm(context, name, 0, NULL, principal);
 | 
						    parse_name_realm(context, name, 0, NULL, principal);
 | 
				
			||||||
	else
 | 
						else
 | 
				
			||||||
	    krb5_err(context, 1, KRB5_CC_NOTFOUND, "get_princ_kt");
 | 
						    krb5_err(context, 1, KRB5_CC_NOTFOUND, "get_princ_kt");
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    krb5_free_principal(context, tmp);
 | 
					    krb5_free_principal(context, tmp);
 | 
				
			||||||
    free(def_realm);
 | 
					    free(def_realm);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user