mirror of
https://github.com/opnsense/src.git
synced 2026-02-18 18:20:26 -05:00
heimdal: Properly ix bus fault when zero-length request received
Zero length client requests result in a bus fault when attempting to free malloc()ed pointers within the requests softc. Return an error when the request is zero length. This properly fixes PR/268062 without regressions. PR: 268062 Reported by: Robert Morris <rtm@lcs.mit.edu> MFC after: 3 days
This commit is contained in:
parent
5319949668
commit
3deefb0d14
1 changed files with 2 additions and 0 deletions
|
|
@ -473,6 +473,8 @@ v5_loop (krb5_context contextp,
|
|||
ret = krb5_read_priv_message(contextp, ac, &fd, &in);
|
||||
if(ret == HEIM_ERR_EOF)
|
||||
exit(0);
|
||||
if (in.length == 0)
|
||||
ret = HEIM_ERR_OPNOTSUPP;
|
||||
if(ret)
|
||||
krb5_err(contextp, 1, ret, "krb5_read_priv_message");
|
||||
doing_useful_work = 1;
|
||||
|
|
|
|||
Loading…
Reference in a new issue