Allow krb5_principal_set_realm to set the realm to NULL.
This commit is contained in:
		 Viktor Dukhovni
					Viktor Dukhovni
				
			
				
					committed by
					
						 Viktor Dukhovni
						Viktor Dukhovni
					
				
			
			
				
	
			
			
			 Viktor Dukhovni
						Viktor Dukhovni
					
				
			
						parent
						
							a2dfe4c467
						
					
				
				
					commit
					01fff2ca9c
				
			| @@ -652,8 +652,9 @@ krb5_principal_set_realm(krb5_context context, | ||||
|     if (princ_realm(principal)) | ||||
| 	free(princ_realm(principal)); | ||||
|  | ||||
|     princ_realm(principal) = strdup(realm); | ||||
|     if (princ_realm(principal) == NULL) | ||||
|     if (realm == NULL) | ||||
| 	princ_realm(principal) = NULL; | ||||
|     else if ((princ_realm(principal) = strdup(realm)) == NULL) | ||||
| 	return krb5_enomem(context); | ||||
|     return 0; | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user