Check if message too large

This commit is contained in:
Love Hornquist Astrand
2011-05-12 21:44:01 -07:00
committed by Love Hörnquist Åstrand
parent 035afb17db
commit b6e56322f3

View File

@@ -2138,7 +2138,9 @@ _kdc_as_rep(kdc_request_t r,
if (ret)
goto out;
/* */
/*
* Check if message too large
*/
if (datagram_reply && reply->length > config->max_datagram_reply_length) {
krb5_data_free(reply);
ret = KRB5KRB_ERR_RESPONSE_TOO_BIG;