krb5: Return appropriate error code
This commit is contained in:
		 Joseph Sutton
					Joseph Sutton
				
			
				
					committed by
					
						 Nico Williams
						Nico Williams
					
				
			
			
				
	
			
			
			 Nico Williams
						Nico Williams
					
				
			
						parent
						
							d83802e2d4
						
					
				
				
					commit
					8640c7c168
				
			| @@ -612,7 +612,7 @@ verify_checksum_iov(krb5_context context, | |||||||
| 	    return ret; | 	    return ret; | ||||||
|     } else if ((flags & KRB5_CRYPTO_FLAG_ALLOW_UNKEYED_CHECKSUM) == 0) { |     } else if ((flags & KRB5_CRYPTO_FLAG_ALLOW_UNKEYED_CHECKSUM) == 0) { | ||||||
| 	krb5_clear_error_message (context); | 	krb5_clear_error_message (context); | ||||||
| 	krb5_set_error_message(context, KRB5KRB_AP_ERR_BAD_INTEGRITY, | 	krb5_set_error_message(context, KRB5KRB_AP_ERR_INAPP_CKSUM, | ||||||
| 			       N_("Unkeyed checksum type %s provided where keyed " | 			       N_("Unkeyed checksum type %s provided where keyed " | ||||||
| 				  "checksum was expected", ""), ct->name); | 				  "checksum was expected", ""), ct->name); | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user