HomeFreeBSD

heimdal: kadm5_c_get_principal() should check return code

Description

heimdal: kadm5_c_get_principal() should check return code

kadm5_c_get_principal() should check the return code from
kadm5_ret_principal_ent(). As it doesn't it assumes success when
there is none and can lead to potential vulnerability. Fix this.

Reported by: rtm@csail.mit.edu
MFC after: 3 days

Details

Provenance
cyAuthored on Dec 9 2022, 2:06 PM
Parents
rG3deefb0d147d: heimdal: Properly ix bus fault when zero-length request received
Branches
Unknown
Tags
Unknown