Check if message too large
This commit is contained in:

committed by
Love Hörnquist Åstrand

parent
035afb17db
commit
b6e56322f3
@@ -2138,7 +2138,9 @@ _kdc_as_rep(kdc_request_t r,
|
|||||||
if (ret)
|
if (ret)
|
||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
/* */
|
/*
|
||||||
|
* Check if message too large
|
||||||
|
*/
|
||||||
if (datagram_reply && reply->length > config->max_datagram_reply_length) {
|
if (datagram_reply && reply->length > config->max_datagram_reply_length) {
|
||||||
krb5_data_free(reply);
|
krb5_data_free(reply);
|
||||||
ret = KRB5KRB_ERR_RESPONSE_TOO_BIG;
|
ret = KRB5KRB_ERR_RESPONSE_TOO_BIG;
|
||||||
|
Reference in New Issue
Block a user